Added the example on how to remove a scope from someone

This commit is contained in:
James Tombleson 2024-04-04 15:31:23 -07:00
parent 69fb7a683b
commit e0a517a765

View File

@ -1,5 +1,5 @@
### Create a standard User ### Create a standard User
POST http://localhost:1323/api/v1/auth/register?username=test&password=test1234! POST http://localhost:1323/api/v1/auth/register
Content-Type: application/x-www-form-urlencoded Content-Type: application/x-www-form-urlencoded
name=test&password=test1234! name=test&password=test1234!
@ -9,6 +9,7 @@ Content-Type: application/x-www-form-urlencoded
name=test&password=test1234! name=test&password=test1234!
### Login with the admin token ### Login with the admin token
POST http://localhost:1323/api/v1/auth/login POST http://localhost:1323/api/v1/auth/login
Content-Type: application/x-www-form-urlencoded Content-Type: application/x-www-form-urlencoded
@ -33,6 +34,12 @@ POST http://localhost:1323/api/v1/auth/scopes/remove
Content-Type: application/json Content-Type: application/json
Authorization: Bearer Authorization: Bearer
{
"name": "test",
"scopes": [
"recipe:create"
]
}
### ###
POST http://localhost:1323/api/v1/ POST http://localhost:1323/api/v1/