Add API doc for CI server endpoints
Closed this issue · 2 comments
mdinler commented
There are three endpoints:
- POST /push-events
- GET /history
- GET /history/{id}
mdinler commented
Please describe the status codes returned and the response body for each endpoint.
spelgubbe commented
POST /push-events:
204 (no content) always.
GET /history:
200 (ok) always. (if history is empty then it returns an empty array)
GET /history/{id}:
400 (bad request) if id is not a number
404 (not found) if build id doesn't exist
else 200 (ok)