Added user management
This commit is contained in:
@@ -6,5 +6,9 @@ content-type: application/json
|
||||
|
||||
{
|
||||
"username": "jonas",
|
||||
"password": "kappa"
|
||||
"password": "paula"
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
GET {{url}}/auth HTTP/1.1
|
||||
45
requests/user.http
Normal file
45
requests/user.http
Normal file
@@ -0,0 +1,45 @@
|
||||
@url = http://{{host}}:{{port}}
|
||||
|
||||
PUT {{url}}/admin/user HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"username": "Paula"
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
GET {{url}}/admin/user/list HTTP/1.1
|
||||
|
||||
###
|
||||
|
||||
POST {{url}}/admin/user/resetpw HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"userid": "68e1058faf78b3aabbdfe8dc"
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
GET {{url}}/admin/roles HTTP/1.1
|
||||
|
||||
###
|
||||
|
||||
POST {{url}}/admin/user/changerole HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"userid": "68e0efc6e4ac740114d8fc9d",
|
||||
"role": "default"
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
POST {{url}}/user/changepw HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"old": "DkgnWspm4To2ww==",
|
||||
"new": "Kolata"
|
||||
}
|
||||
Reference in New Issue
Block a user