api/REST-Tests/users.http

54 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2018-09-20 17:42:01 +00:00
# Get all users
2018-12-29 14:29:50 +00:00
GET http://localhost:8080/api/v1/user
2018-09-20 17:42:01 +00:00
Authorization: Bearer {{auth_token}}
######
# Search for a user
GET http://localhost:8080/api/v1/users?s=3
Authorization: Bearer {{auth_token}}
###
## 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 09:33:28 +00: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 21:05:25 +00:00
"email": "k@knt.li"
2018-10-27 09:33:28 +00:00
}
### Request a token to reset a password
2018-10-27 09:33:28 +00:00
POST http://localhost:8080/api/v1/user/password/reset
Content-Type: application/json
Accept: application/json
{
2018-10-27 13:12:15 +00:00
"token": "eAsZzakgqARnjzXHqsHqZtSUKuiOhoJjHANhgTxUIDBSalhbtdpAdLeywGXzVDBuRQGNpHdMxoHXhLVSlzpJsFvuoJgMdkhRhkNhaQXfufuZCdtUlerZHSJQLgYMUryHIxIREcmZLtWoZVrYyARkCvkyFhcGtoCwQOEjAOEZMQQuxTVoGYfAqcfNggQnerUcXCiRIgRtkusXSnltomhaeyRwAbrckXFeXxUjslgplSGqSTOqJTYuhrSzAVTwNvuYyvuXLaZoNnJEyeVDWlRydnxfgUQjQZOKwCBRWVQPKpZhlslLUyUAMsRQkHITkruQCjDnOGCCRsSNplbNCEuDmMfpWYHSQAcQIDZtbQWkxzpfmHDMQvvKPPrxEnrTErlvTfKDKICFYPQxXNpNE",
2018-10-27 09:33:28 +00:00
"new_password": "1234"
}
### Confirm a users email address
POST http://localhost:8080/api/v1/user/confirm
Content-Type: application/json
Accept: application/json
{
"token": ""
}
2018-10-27 09:33:28 +00:00
###