[Yum-devel] restful yum

seth vidal skvidal at phy.duke.edu
Sat Dec 3 06:15:55 UTC 2005


I was reading this page:
 http://www.xml.com/pub/a/2004/12/01/restful-web.html

and thinking about how to apply that to the objects yum deals with. This
is what I've come up with so far:

resources:

  packages:
     locations: in repos
                in rpmdb(just another repo, really)
                at other uris

     get: returns a list of package uris
     post: N/A
     
   a package:
     get: returns xml info about the package   
     put: changes desired state?
     post: creates a package structure
     delete: removes package from use
    
    installed package:
     get: returns info
     put: marks package to be removed
     delete: same as put?
     post: N/A
    
    package in a repo:
     get: returns info
     put: marks package to be installed (translates to updated, etc)
     delete: removes the package from the package sack
     post: creates a new package object to be populated?
     
  repos:
    locations: baseurls

    get: returns a list of repostiory uris
    post: create a repository object

   a repo:
    get: return xml info about the repository
    put: changes state of metadata?
    post: n/a
    delete: removes repo from packageSack
    
    
  
So a uri for a repo would be:
 http://someplace/repo_identifier
and a uri for a package could be:
 http://someplace/repo_identifier/package_identifier


Does that start to make any sense or am going down the wrong track and
what can we get out of this?

-sv





More information about the Yum-devel mailing list