This commit is contained in:
2023-04-03 10:39:44 +10:00
parent c0c10c21a9
commit 8432286101

View File

@@ -56,6 +56,15 @@ WantedBy=multi-user.target
#### Register #### Register
POST `/api/admin/register` POST `/api/admin/register`
Data
```
{
"UserName": "",
"Password": "",
"RoleId": 2
}
```
This operation can only be performed by a user with a role that is admin enabled. This operation can only be performed by a user with a role that is admin enabled.
#### Login #### Login
@@ -63,7 +72,7 @@ POST `/api/login`
Data Data
``` ```
'{ {
"UserName": "", "UserName": "",
"Password": "" "Password": ""
} }