mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 17: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
|
||||
}
|
||||
Reference in new issue
Block a user