User:Catlee/BuildAPI

From MozillaWiki
< User:Catlee
Revision as of 19:16, 29 September 2010 by Catlee (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

REST Interface

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)

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

TODO: rebuilding