canmove, Confirmed users
6,441
edits
No edit summary |
|||
| Line 299: | Line 299: | ||
} | } | ||
</pre> | </pre> | ||
== /users == | |||
=== GET === | |||
Returns all of the users known to Balrog inside of a JSON Object in the following format: | |||
<pre> | |||
{ | |||
"users": [ | |||
"bhearsum@mozilla.com", | |||
"ffxbld", | |||
"nthomas@mozilla.com", | |||
... | |||
] | |||
} | |||
</pre> | |||
Note that Balrog only tracks permisssions, not accounts, so this list does not include users who are able to login, but have no permissions to change anything. | |||
== /users/<username>/permissions == | |||
=== GET === | |||
Returns all of the permissions that the given username has been granted in a JSON Object in the following format: | |||
<pre> | |||
{ | |||
"/releases/:name": { | |||
"data_version": 1, | |||
"options": { | |||
"method": "POST, | |||
"product": [ | |||
"Firefox", | |||
"Fennec" | |||
] | |||
} | |||
}, | |||
... | |||
} | |||
</pre> | |||
== /users/<username>/permissions/<permission> == | |||
=== GET === | |||
Returns the details of the specific named permission for the username given in a JSON Object in the following format: | |||
<pre> | |||
{ | |||
"data_version": 1, | |||
"options": { | |||
"method": "POST, | |||
"product": [ | |||
"Firefox", | |||
"Fennec" | |||
] | |||
} | |||
} | |||
</pre> | |||
=== POST === | |||