add list secret api endpoint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-05 11:31:42 +10:00
parent 70f8103901
commit b9a0c3ec0a
4 changed files with 52 additions and 10 deletions

View File

@@ -59,8 +59,8 @@ POST `/api/admin/register`
Data
```
{
"UserName": "",
"Password": "",
"username": "",
"password": "",
"RoleId": 2
}
```
@@ -73,8 +73,8 @@ POST `/api/login`
Data
```
{
"UserName": "",
"Password": ""
"username": "",
"password": ""
}
```
This API call will return a JWT token that must be present for any other API calls to succeed. The validity duration of this token is based on the configured TOKEN_HOUR_LIFESPAN value. JWT token is returned as value of `access_token`.