This commit is contained in:
2023-04-03 11:04:52 +10:00
parent 8432286101
commit c229e93103
6 changed files with 86 additions and 2 deletions

View File

@@ -81,5 +81,34 @@ Data
### Secrets Operations
#### Store
POST `/api/secret/store`
```
{
"deviceName": "",
"deviceCategory": "",
"userName": "",
"secretValue": ""
}
```
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.
#### Retrieve
#### Update
GET `/api/secret/retrieve`
Data
```
{
"deviceName": "",
"deviceCategory": ""
}
```
Must be logged in to execute this command. Only secrets registered with the current user's RoleId can be retrieved.
Either deviceName or deviceCategory can be specified (or both). Wildcards are supported.
1. The percent sign % wildcard matches any sequence of zero or more characters.
2. The underscore _ wildcard matches any single character.
#### Update