User:Catlee/BuildAPI

REST Interface

GET /builds/branches -> list of branches

GET /builds/{branch} -> list of recent builds, including completed, running and pending

GET /builds/{branch}/build/{buildid} -> information about a particular build

GET /builds/{branch}/rev/{revision} -> list of builds for this revision

GET /builds/{branch}/builders -> list of valid builder names

GET /builds/{branch}/builders/{buildername} -> list of recent builds, including completed, running, and pending for this builder name

PUT /builds/{branch}/build/{buildid} -> update this build (e.g. re-prioritize request)

DELETE /builds/{branch}/build/{buildid} -> cancel this build (takes onlyifrunning/onlyifpending parameters)

POST /builds/{branch}/rev/{revision} -> create a new build with this revision (requires builder names as part of POST data)

POST /builds/{branch}/builders/{buildername} -> create a new build on this builder (optional revision accepted as part of POST data)

POST /builds/{branch}/build -> rebuilds an old build on this branch (requires buildid of build to rebuild)

PUT and DELETE can also be achieved by POSTing to the URL with a POST field "_method" set to PUT or DELETE.