Adds user management documentation

This commit is contained in:
BinaryAlley committed 2025-01-02 13:06:18 +02:00
1 parent 969251c210
commit e3573930bd
17 files changed
+536 -1

No files matched your search

@@ -0,0 +1,10 @@
POST {{host}}/api/v1/auth/change-password
Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: application/json
{
"Username": "JohnDoe",
"CurrentPassword": "Abcd123$",
"NewPassword": "123$Abcd",
"NewPasswordConfirm": "123$Abcd"
}
@@ -0,0 +1,8 @@
POST {{host}}/api/v1/auth/login
Content-Type: application/json
{
"Username": "a",
"Password": "Abcd123$",
"TotpCode": "123456"
}
@@ -0,0 +1,7 @@
POST {{host}}/api/v1/auth/recover-password
Content-Type: application/json
{
"Username": "JohnDoe",
"TotpCode": "123456"
}
@@ -0,0 +1,9 @@
POST {{host}}/api/v1/auth/register
Content-Type: application/json
{
"Username": "JohnDoe",
"Password": "Abcd123$",
"PasswordConfirm": "Abcd123$",
"Use2fa": true
}
@@ -0,0 +1,2 @@
GET {{host}}/api/v1/roles
Authorization: Bearer {{ACCESS_TOKEN}}
@@ -0,0 +1,2 @@
DELETE {{host}}/api/v1/roles/{{$guid}}
Authorization: Bearer {{ACCESS_TOKEN}}
@@ -0,0 +1,2 @@
GET {{host}}/api/v1/auth/get-authorization?userId={{$guid}}
Authorization: Bearer {{ACCESS_TOKEN}}
@@ -0,0 +1,2 @@
GET {{host}}/api/v1/permissions
Authorization: Bearer {{ACCESS_TOKEN}}
@@ -0,0 +1,2 @@
GET {{host}}/api/v1/roles/{{$guid}}/permissions
Authorization: Bearer {{ACCESS_TOKEN}}
@@ -0,0 +1,2 @@
GET {{host}}/api/v1/roles
Authorization: Bearer {{ACCESS_TOKEN}}
@@ -0,0 +1,2 @@
GET {{host}}/api/v1/auth/users/{{$guid}}/permissions
Authorization: Bearer {{ACCESS_TOKEN}}
@@ -0,0 +1,2 @@
GET {{host}}/api/v1/auth/users/{{$guid}}/role
Authorization: Bearer {{ACCESS_TOKEN}}
@@ -0,0 +1,12 @@
PUT {{host}}/api/v1/roles
Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: application/json
{
"RoleId": "73d204e2-5922-441d-83d8-8d4d8fc29eaa",
"RoleName": "Editor",
"Permissions": [
"ac113d18-69bb-4162-8c05-ff7a5559059a",
"3c2fd936-8d4a-4963-b237-9f8d3aeeab26"
]
}
@@ -0,0 +1,11 @@
PUT {{host}}/api/v1/auth/users/{{$guid}}/role-and-permissions
Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: application/json
{
"RoleId": "92e996fd-645e-4e2f-96fe-30c27e4c6423",
"Permissions": [
"5957ea98-3deb-4ebe-a5b9-1aafa1480558",
"5b9cedf5-9fc5-44d9-bc7e-1164409dc952"
]
}