Go-Back-Skeleton/testing/rest/user/account.http
2017-09-25 20:19:57 +02:00

33 lines
No EOL
555 B
HTTP

GET {{host}}/api/account
Authorization: {{jwtUser}}
###
PUT {{host}}/api/account
Authorization: {{jwtUser}}
{
"email": "user@boot.io",
"name": "User Boot",
"active": false,
"roles": ["user", "admin"]
}
###
DELETE {{host}}/api/account
Authorization: {{jwtUser}}
###
PUT {{host}}/api/account/token/3
Authorization: {{jwtUser}}
{
"identifier": "my token identifier"
}
###
DELETE {{host}}/api/account/token/1
Authorization: {{jwtUser}}
###
PUT {{host}}/api/account/profile
Authorization: {{jwtUser}}
{
"id": 3,
"theme": "dark"
}