Returns a list of all the upstreams
{
"centos-6.0-os-x86_64": "http://localhost/upstream/centos-6.0-os-x86_64"
}
Creates a new upstream
Request Body
{
"name": "centos-6.0-os-x86_64",
"path": "poop",
"type": "yum",
}
Response
{
"uri": "http://localhost/upstream/NAME"
}
Responds with the URI of where the upstream can be fetched.
Acceptable types are:
Returns the upstream
Request
{
"name": "centos-6.0-os-x86_64",
"path": "poop",
"type": "yum",
"created_at": "2012-03-15T17:45Z"
"updated_at": "2012-03-15T17:45Z"
}
Updates or creates the upstream. If the upstream already exists, it will trigger a re-sync.
Request
{
"name": "centos-6.0-os-x86_64",
"path": "poop",
"type": "yum"
}
Response
{
"name": "centos-6.0-os-x86_64",
"path": "poop",
"type": "yum",
"updated_at": "2012-03-15T17:45Z"
}
Returns a list of all the packages in this upstream.
Response
{
"08cb7b6e5af66461f7c7c3c66e6a7b75cb152c567d8560eda9f8f2b68bcee1e5": {
"name": "at",
"filename": "at-3.1.10-42.el6.i686.rpm",
"shasum": "...",
"version": "3.1.0"
}
}
Returns a list of all the repos.
{
"centos-6.0-os-x86_64-dev": "http://localhost/repo/centos-6.0-os-x86_64-dev"
}
Creates a new repo
Request Body
{
"name": "centos-6.0-os-x86_64-dev",
"type": "yum"
}
Response
{
"uri": "http://localhost/repo/NAME"
}
Responds with the URI of where the repo can be fetched.
Acceptable types are:
Returns the repo
Request
{
"name": "centos-6.0-os-x86_64-dev",
"type": "yum",
"updated_at": "2012-03-15T17:45Z"
}
Updates or creates the repo.
Request
{
"name": "centos-6.0-os-x86_64-dev",
"path": "poop",
"type": "yum"
}
Response
{
"name": "centos-6.0-os-x86_64-dev",
"type": "yum",
"updated_at": "2012-03-15T17:45Z"
}
Get the list of packages in this repo
Response
{
"08cb7b6e5af66461f7c7c3c66e6a7b75cb152c567d8560eda9f8f2b68bcee1e5": {
"name": "at",
"filename": "at-3.1.10-42.el6.i686.rpm",
"shasum": "...",
"version": "3.1.0"
}
}
Set the list of packages in this repo. We take two kinds of request bodies:
Request
Set the list manually
{
"08cb7b6e5af66461f7c7c3c66e6a7b75cb152c567d8560eda9f8f2b68bcee1e5": true
}
Sync with an upstream or other repo
{
"sync": {
"name": "centos-6.0-os-x86_64",
"type": "upstream"
}
}
Response
A list of all the packages.
Response
{
"08cb7b6e5af66461f7c7c3c66e6a7b75cb152c567d8560eda9f8f2b68bcee1e5": "http://localhost/package/08cb7b6e5af66461f7c7c3c66e6a7b75cb152c567d8560eda9f8f2b68bcee1e5",
"09cb7b6e5af66461f7c7c3c66e6a7b75cb152c567d8560eda9f8f2b68bcee1e5": "http://localhost/package/09cb7b6e5af66461f7c7c3c66e6a7b75cb152c567d8560eda9f8f2b68bcee1e5"
}
The information we have about the package
Response
{
"name": "at",
"filename": "at-3.1.10-42.el6.i686.rpm",
"shasum": "08cb7b6e5af66461f7c7c3c66e6a7b75cb152c567d8560eda9f8f2b68bcee1e5",
"version": "3.1.0",
"upstreams": {
"centos-6.0-os-x86_64": "http://localhost/upstream/centos-6.0-os-x86_64"
},
"repos": {
"centos-6.0-os-x86_64-dev": "http://localhost/repo/centos-6.0-os-x86_64-dev"
}
}
}