From e0a517a7654e4a472a59f961e93aa3321ea1993e Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Thu, 4 Apr 2024 15:31:23 -0700 Subject: [PATCH] Added the example on how to remove a scope from someone --- rest.http | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rest.http b/rest.http index e3fb84c..ad8faed 100644 --- a/rest.http +++ b/rest.http @@ -1,5 +1,5 @@ ### 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 name=test&password=test1234! @@ -9,6 +9,7 @@ Content-Type: application/x-www-form-urlencoded name=test&password=test1234! + ### Login with the admin token POST http://localhost:1323/api/v1/auth/login Content-Type: application/x-www-form-urlencoded @@ -33,6 +34,12 @@ POST http://localhost:1323/api/v1/auth/scopes/remove Content-Type: application/json Authorization: Bearer +{ + "name": "test", + "scopes": [ + "recipe:create" + ] +} ### POST http://localhost:1323/api/v1/