canmove, Confirmed users
6,441
edits
No edit summary |
No edit summary |
||
| Line 104: | Line 104: | ||
] | ] | ||
</pre> | </pre> | ||
This endpoint suports pagination. If "page" and "limit" are present in the query args, a slice of the revisions are returned instead of the full history. Eg: if page is "2" and limit is "5", the 6th through 10th revisions would be returned. "count" is not affected by pagination - it will always return the total number of revisions that exist. | |||
=== POST === | === POST === | ||
| Line 113: | Line 115: | ||
<pre> | <pre> | ||
{ | { | ||
"count": | "count": 10, | ||
"product": [ | "product": [ | ||
"Firefox", | "Firefox", | ||
| Line 253: | Line 255: | ||
* data_version (required) | * data_version (required) | ||
* read_only | * read_only | ||
== /releases/<release>/revisions == | |||
=== GET === | |||
Returns previous versions of the named Release in a JSON Object in the following format: | |||
<pre> | |||
{ | |||
"count": 1 | |||
"rules": [ | |||
{ | |||
"id": 1, | |||
"change_id": 4, | |||
"timestamp": 1451610061000, | |||
"changed_by": "jane", | |||
"product": "Firefox", | |||
... | |||
} | |||
] | |||
</pre> | |||
This endpoint suports pagination. If "page" and "limit" are present in the query args, a slice of the revisions are returned instead of the full history. Eg: if page is "2" and limit is "5", the 6th through 10th revisions would be returned. "count" is not affected by pagination - it will always return the total number of revisions that exist. | |||
=== POST === | |||
Reverts the named Release to the version identified by the change_id given in the request body. The request body <em>must</em> be a JSON object containing a "change_id" key. | |||
== /rules/columns/<column> == | |||
=== GET === | |||
Returns a JSON Object containing the unique values for the given column. For example, /releases/columns/product would return something like: | |||
<pre> | |||
{ | |||
"count": 10, | |||
"product": [ | |||
"Firefox", | |||
"Graphene", | |||
"Thunderbird", | |||
"MetroFirefox", | |||
"Horizon", | |||
"B2G", | |||
"GMP", | |||
"Fennec", | |||
"SystemAddons", | |||
"B2GDroid" | |||
] | |||
} | |||
</pre> | |||