canmove, Confirmed users
6,439
edits
(→API) |
(→API) |
||
Line 112: | Line 112: | ||
| 200 - Release deleted | | 200 - Release deleted | ||
| | | | ||
|- | |||
| rowspan=2 | /releases/[name]/rollback | |||
| rowspan=2 | PUT | |||
| rowspan=2 | releases_log_id - Id of an entry in the releases shadow table. Must be an entry with a matching release name. | |||
| rowspan=2 | Rollback the release to the specified log entry | |||
| 200 - Rule modified | |||
| | |||
|- | |||
| 400 - releases_log_id doesn't exist or release name doesn't match | |||
| errmsg | |||
|- | |- | ||
| 404 - Release does not exist | | 404 - Release does not exist | ||
Line 167: | Line 177: | ||
| rowspan=5 | Retrieve history of changes to rules | | rowspan=5 | Retrieve history of changes to rules | ||
| rowspan=2 | 200 - Log entries returned | | rowspan=2 | 200 - Log entries returned | ||
| rowspan=2 | JSON object whose keys are | | rowspan=2 | JSON object whose keys are releases_log_id's and values are an object with the following data: release name/version/product/data, username and timestamp | ||
|- | |- | ||
| product - Only retrieve log entries for a release whose product is this | | product - Only retrieve log entries for a release whose product is this | ||
Line 258: | Line 268: | ||
| rowspan=2 | /rules/[id]/rollback | | rowspan=2 | /rules/[id]/rollback | ||
| rowspan=2 | PUT | | rowspan=2 | PUT | ||
| rowspan=2 | rules_log_id - Id of an entry in the rules shadow table. Must be an entry with a matching rule id | | rowspan=2 | rules_log_id - Id of an entry in the rules shadow table. Must be an entry with a matching rule id. | ||
| rowspan=2 | Rollback the rule to the specified log entry | | rowspan=2 | Rollback the rule to the specified log entry | ||
| 200 - Rule modified | | 200 - Rule modified |