2018-09-20 19:42:01 +02:00
|
|
|
|
|
|
|
# Get all users
|
2018-12-29 15:29:50 +01:00
|
|
|
GET http://localhost:8080/api/v1/user
|
2018-09-20 19:42:01 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
{
|
2018-12-19 22:05:25 +01:00
|
|
|
"email": "k@knt.li"
|
2018-10-27 11:33:28 +02:00
|
|
|
}
|
|
|
|
|
2018-10-27 15:14:55 +02:00
|
|
|
### Request a token to reset a password
|
2018-10-27 11:33:28 +02:00
|
|
|
POST http://localhost:8080/api/v1/user/password/reset
|
|
|
|
Content-Type: application/json
|
|
|
|
Accept: application/json
|
|
|
|
|
|
|
|
{
|
2018-10-27 15:12:15 +02:00
|
|
|
"token": "eAsZzakgqARnjzXHqsHqZtSUKuiOhoJjHANhgTxUIDBSalhbtdpAdLeywGXzVDBuRQGNpHdMxoHXhLVSlzpJsFvuoJgMdkhRhkNhaQXfufuZCdtUlerZHSJQLgYMUryHIxIREcmZLtWoZVrYyARkCvkyFhcGtoCwQOEjAOEZMQQuxTVoGYfAqcfNggQnerUcXCiRIgRtkusXSnltomhaeyRwAbrckXFeXxUjslgplSGqSTOqJTYuhrSzAVTwNvuYyvuXLaZoNnJEyeVDWlRydnxfgUQjQZOKwCBRWVQPKpZhlslLUyUAMsRQkHITkruQCjDnOGCCRsSNplbNCEuDmMfpWYHSQAcQIDZtbQWkxzpfmHDMQvvKPPrxEnrTErlvTfKDKICFYPQxXNpNE",
|
2018-10-27 11:33:28 +02:00
|
|
|
"new_password": "1234"
|
|
|
|
}
|
|
|
|
|
2018-10-27 15:14:55 +02:00
|
|
|
### Confirm a users email address
|
|
|
|
|
|
|
|
POST http://localhost:8080/api/v1/user/confirm
|
|
|
|
Content-Type: application/json
|
|
|
|
Accept: application/json
|
|
|
|
|
|
|
|
{
|
2018-11-01 23:59:20 +01:00
|
|
|
"token": ""
|
2018-10-27 15:14:55 +02:00
|
|
|
}
|
|
|
|
|
2018-10-27 11:33:28 +02:00
|
|
|
###
|