зеркало из https://github.com/mozilla/mig.git
[minor] remove reference to setadmin from mig-console
setadmin in mig-console was replaced by setperms; remove an old reference to it in the help output. Also removes some references to isadmin that were still present in API documentation. Closes #312
This commit is contained in:
Родитель
3369f6469f
Коммит
57d5e9182f
|
@ -91,7 +91,6 @@ pubkey show the armored public key of the investigator
|
||||||
r refresh the investigator (get latest version from upstream)
|
r refresh the investigator (get latest version from upstream)
|
||||||
setperms [permissions...] set permissions for investigator, no arguments to apply default
|
setperms [permissions...] set permissions for investigator, no arguments to apply default
|
||||||
showperms display possible permission values
|
showperms display possible permission values
|
||||||
setadmin <true|false> enable or disable admin flag for investigator
|
|
||||||
setstatus <status> changes the status of the investigator to <status> (can be 'active' or 'disabled')
|
setstatus <status> changes the status of the investigator to <status> (can be 'active' or 'disabled')
|
||||||
`)
|
`)
|
||||||
case "lastactions":
|
case "lastactions":
|
||||||
|
|
|
@ -757,7 +757,7 @@ POST /api/v1/investigator/create/
|
||||||
* Parameters: (POST body)
|
* Parameters: (POST body)
|
||||||
- `name`: string that represents the full name
|
- `name`: string that represents the full name
|
||||||
- `publickey`: armored GPG public key
|
- `publickey`: armored GPG public key
|
||||||
- `isadmin`: specify if user should be admin, true or false
|
- `permissions`: JSON marshaled mig.InvestigatorPerms data
|
||||||
* Response Code: 201 Created
|
* Response Code: 201 Created
|
||||||
* Response: Collection+JSON
|
* Response: Collection+JSON
|
||||||
* Example: (without authentication)
|
* Example: (without authentication)
|
||||||
|
@ -765,7 +765,7 @@ POST /api/v1/investigator/create/
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
$ gpg --export -a --export-options export-minimal bob_kelso@example.net > /tmp/bobpubkey
|
$ gpg --export -a --export-options export-minimal bob_kelso@example.net > /tmp/bobpubkey
|
||||||
$ curl -iv -F "name=Bob Kelso" -F "isadmin=false" -F publickey=@/tmp/pubkey https://api.mig.example.net/api/v1/investigator/create/
|
$ curl -iv -F "name=Bob Kelso" -F -F 'permissions={"search":true,"dashboard":true}' -F publickey=@/tmp/pubkey https://api.mig.example.net/api/v1/investigator/create/
|
||||||
|
|
||||||
POST /api/v1/investigator/update/
|
POST /api/v1/investigator/update/
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -774,12 +774,12 @@ POST /api/v1/investigator/update/
|
||||||
* Parameters: (POST body)
|
* Parameters: (POST body)
|
||||||
- `id`: investigator id, to identify the target investigator
|
- `id`: investigator id, to identify the target investigator
|
||||||
- `status`: new status of the investigator, to be updated
|
- `status`: new status of the investigator, to be updated
|
||||||
- `isadmin`: specify if user should be admin, true or false
|
- `permissions`: JSON marshaled mig.InvestigatorPerms data
|
||||||
* Response Code: 201 Created
|
* Response Code: 201 Created
|
||||||
* Response: Collection+JSON
|
* Response: Collection+JSON
|
||||||
* Example: (without authentication)
|
* Example: (without authentication)
|
||||||
|
|
||||||
One of either ``status`` or ``isadmin`` must be passed to this API endpoint.
|
One of either ``status`` or ``permissions`` must be passed to this API endpoint.
|
||||||
|
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче