This commit is contained in:
2023-04-03 10:38:53 +10:00
parent 97598fe01b
commit c0c10c21a9
3 changed files with 36 additions and 3 deletions

View File

@@ -50,3 +50,27 @@ ExecStart=/srv/ccsecrets/ccsecrets
WantedBy=multi-user.target
```
## API
### User Operations
#### Register
POST `/api/admin/register`
This operation can only be performed by a user with a role that is admin enabled.
#### Login
POST `/api/login`
Data
```
'{
"UserName": "",
"Password": ""
}
```
### Secrets Operations
#### Store
#### Retrieve
#### Update