User:Catlee/BuildAPI: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with "= REST Interface = GET /builds/{branch} -> list of recent builds, including completed, running and pending GET /builds/{branch}/build/{buildid} -> information about a particula...")
 
Line 1: Line 1:
= REST Interface =
= REST Interface =
GET /builds/branches -> list of branches


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


POST /builds/{branch}/builders/{buildername} -> create a new build on this builder (optional revision accepted 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.
PUT and DELETE can also be achieved by POSTing to the URL with a POST field "_method" set to PUT or DELETE.
TODO: rebuilding

Revision as of 19:36, 29 September 2010

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.