updates
This commit is contained in:
14
README.md
14
README.md
@@ -94,6 +94,8 @@ POST `/api/secret/store`
|
||||
|
||||
Must be logged in to execute this command. Role of current user cannot be a ReadOnly role. Secret will be stored with the RoleId of the currently logged in user. Either deviceName or deviceCategory can be blank but not both.
|
||||
|
||||
If a secret exists for this RoleId and matching deviceName and deviceCategory then an error will be generated.
|
||||
|
||||
#### Retrieve
|
||||
GET `/api/secret/retrieve`
|
||||
|
||||
@@ -112,3 +114,15 @@ Either deviceName or deviceCategory can be specified (or both). Wildcards are su
|
||||
2. The underscore _ wildcard matches any single character.
|
||||
|
||||
#### Update
|
||||
POST `/api/secret/update`
|
||||
|
||||
```
|
||||
{
|
||||
"deviceName": "",
|
||||
"deviceCategory": "",
|
||||
"userName": "",
|
||||
"secretValue": ""
|
||||
}
|
||||
```
|
||||
|
||||
Users with ReadOnly role will receive Forbidden error when calling this API endpoint. The values specified in deviceName and deviceCategory must match exactly one existing secret record for the RoleId of the currently logged in user.
|
Reference in New Issue
Block a user