2018-09-20 19:42:01 +02:00
|
|
|
|
|
|
|
# Get all users
|
|
|
|
GET http://localhost:8080/api/v1/users
|
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
######
|
|
|
|
# Search for a user
|
|
|
|
GET http://localhost:8080/api/v1/users?s=3
|
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
2018-10-04 07:53:45 +02:00
|
|
|
###
|
|
|
|
|
|
|
|
## Update password
|
|
|
|
|
|
|
|
POST http://localhost:8080/api/v1/user/password
|
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
{
|
|
|
|
"old_password": "1234",
|
|
|
|
"new_password": "1234"
|
|
|
|
}
|
|
|
|
|
2018-10-27 11:33:28 +02:00
|
|
|
### Request a password to reset a password
|
|
|
|
POST http://localhost:8080/api/v1/user/password/token
|
|
|
|
Content-Type: application/json
|
|
|
|
Accept: application/json
|
|
|
|
|
|
|
|
{
|
|
|
|
"user_name": "user"
|
|
|
|
}
|
|
|
|
|
|
|
|
### Request a password to reset a password
|
|
|
|
POST http://localhost:8080/api/v1/user/password/reset
|
|
|
|
Content-Type: application/json
|
|
|
|
Accept: application/json
|
|
|
|
|
|
|
|
{
|
|
|
|
"user_id": 1,
|
|
|
|
"token": "syPYBkzonBbWEXtHQlMDwDMWfsGgkeHWYRBncIDtVBrizTHBGDPnNbpjwtKtKfutUuzCTfQcXLTFgVTzDsmHcPxvrQxlKTmjPyyDLEEwnHkRntsweFyrymjfhiqZwwPCsPLegtnruaaFerjPNgmCXPVjsSGSDWjQcJsVgkljgjeeRwowxYQxMZeLlVHitEHkNfXnXUeEQmPmGLwPuGBGEXhHJpsckYwkOQTulJzDSrsynzNaHRbxQfdxthToFOzidOKzJKdesQKIocTfSDPXzvVKdlSPkZRiyNIbFxoiIWRGQFSHltmqzDwxudwcDbMMwaLQloUWZahhfkFRPKLoFQQezPgYecIihrewglYvQOZfNISKAWyHyWfOBWAkrtGODpuJlTLZwImYzNSX",
|
|
|
|
"new_password": "1234"
|
|
|
|
}
|
|
|
|
|
|
|
|
###
|