76 lines
1.6 KiB
HTTP
76 lines
1.6 KiB
HTTP
@MikrocopApi_HostAddress = http://localhost:5018
|
|
@AccessToken = paste-jwt-here
|
|
@UserId = 00000000-0000-0000-0000-000000000000
|
|
|
|
POST {{MikrocopApi_HostAddress}}/api/auth/register
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"userName": "john.doe",
|
|
"fullName": "John Doe",
|
|
"email": "john.doe@example.com",
|
|
"mobileNumber": "+15551234567",
|
|
"language": "en",
|
|
"culture": "en-US",
|
|
"password": "StrongPass123"
|
|
}
|
|
|
|
###
|
|
POST {{MikrocopApi_HostAddress}}/api/auth/login
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"userName": "john.doe",
|
|
"password": "StrongPass123"
|
|
}
|
|
|
|
###
|
|
POST {{MikrocopApi_HostAddress}}/api/users
|
|
Authorization: Bearer {{AccessToken}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"userName": "jane.doe",
|
|
"fullName": "Jane Doe",
|
|
"email": "jane.doe@example.com",
|
|
"mobileNumber": "+15550000001",
|
|
"language": "en",
|
|
"culture": "en-US",
|
|
"password": "StrongPass123"
|
|
}
|
|
|
|
###
|
|
GET {{MikrocopApi_HostAddress}}/api/users/{{UserId}}
|
|
Authorization: Bearer {{AccessToken}}
|
|
Accept: application/json
|
|
|
|
###
|
|
PUT {{MikrocopApi_HostAddress}}/api/users/{{UserId}}
|
|
Authorization: Bearer {{AccessToken}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"userName": "john.doe",
|
|
"fullName": "Johnathan Doe",
|
|
"email": "john.doe@example.com",
|
|
"mobileNumber": "+15550000002",
|
|
"language": "en",
|
|
"culture": "en-US",
|
|
"password": "AnotherStrongPass123"
|
|
}
|
|
|
|
###
|
|
POST {{MikrocopApi_HostAddress}}/api/users/{{UserId}}/validate-password
|
|
Authorization: Bearer {{AccessToken}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"password": "AnotherStrongPass123"
|
|
}
|
|
|
|
###
|
|
DELETE {{MikrocopApi_HostAddress}}/api/users/{{UserId}}
|
|
Authorization: Bearer {{AccessToken}}
|
|
|
|
###
|