Added user management

This commit is contained in:
2025-10-04 13:40:30 +02:00
parent a197d9bd3b
commit 34696a1fc8
10 changed files with 308 additions and 53 deletions

View File

@@ -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
View 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"
}