mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 20:11:10 +00:00
Updates API documentation
This commit is contained in:
1 parent
53ec400921
commit
629e6e463e
59 files changed
+1558
-192
No files matched your search
@@ -3,8 +3,8 @@ Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"Username": "JohnDoe",
|
||||
"CurrentPassword": "Abcd123$",
|
||||
"NewPassword": "123$Abcd",
|
||||
"NewPasswordConfirm": "123$Abcd"
|
||||
"username": "JohnDoe",
|
||||
"currentPassword": "Abcd123$",
|
||||
"newPassword": "123$Abcd",
|
||||
"newPasswordConfirm": "123$Abcd"
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/auth/users
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -2,7 +2,7 @@ POST {{host}}/api/v1/auth/login
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"Username": "a",
|
||||
"Password": "Abcd123$",
|
||||
"TotpCode": "123456"
|
||||
"username": "JohnDoe",
|
||||
"password": "Abcd123$",
|
||||
"totpCode": "123456"
|
||||
}
|
||||
@@ -2,6 +2,6 @@ POST {{host}}/api/v1/auth/recover-password
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"Username": "JohnDoe",
|
||||
"TotpCode": "123456"
|
||||
"username": "JohnDoe",
|
||||
"totpCode": "123456"
|
||||
}
|
||||
@@ -2,8 +2,8 @@ POST {{host}}/api/v1/auth/register
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"Username": "JohnDoe",
|
||||
"Password": "Abcd123$",
|
||||
"PasswordConfirm": "Abcd123$",
|
||||
"Use2fa": true
|
||||
"username": "JohnDoe",
|
||||
"password": "Abcd123$",
|
||||
"passwordConfirm": "Abcd123$",
|
||||
"use2fa": true
|
||||
}
|
||||
@@ -1,2 +1,8 @@
|
||||
GET {{host}}/api/v1/auth/roles
|
||||
POST {{host}}/api/v1/auth/roles
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"roleName": "Editor",
|
||||
"permissions": []
|
||||
}
|
||||
@@ -3,9 +3,9 @@ Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"RoleId": "73d204e2-5922-441d-83d8-8d4d8fc29eaa",
|
||||
"RoleName": "Editor",
|
||||
"Permissions": [
|
||||
"roleId": "73d204e2-5922-441d-83d8-8d4d8fc29eaa",
|
||||
"roleName": "Editor",
|
||||
"permissions": [
|
||||
"ac113d18-69bb-4162-8c05-ff7a5559059a",
|
||||
"3c2fd936-8d4a-4963-b237-9f8d3aeeab26"
|
||||
]
|
||||
|
||||
+2
-2
@@ -3,8 +3,8 @@ Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"RoleId": "92e996fd-645e-4e2f-96fe-30c27e4c6423",
|
||||
"Permissions": [
|
||||
"roleId": "92e996fd-645e-4e2f-96fe-30c27e4c6423",
|
||||
"permissions": [
|
||||
"5957ea98-3deb-4ebe-a5b9-1aafa1480558",
|
||||
"5b9cedf5-9fc5-44d9-bc7e-1164409dc952"
|
||||
]
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/users/me/settings
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,10 @@
|
||||
PUT {{host}}/api/v1/users/me/settings
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"isPaginationEnabled": true,
|
||||
"itemsPerPage": 50,
|
||||
"ignoreThePrefixForAlphaPicker": true,
|
||||
"isThemeCachingEnabled": true
|
||||
}
|
||||
Reference in new issue
Block a user