Fix #183, change immediate revocation request to PATCH
This commit is contained in:
committed by
Steve Chávez
parent
14cb86d147
commit
24a5a27977
+8
-4
@@ -230,13 +230,17 @@ Restart PostgREST for the change to take effect. Next try making a request with
|
|||||||
|
|
||||||
# this request still works
|
# this request still works
|
||||||
|
|
||||||
curl http://localhost:3000/todos \
|
curl http://localhost:3000/todos -X PATCH \
|
||||||
-H "Authorization: Bearer $TOKEN"
|
-H "Authorization: Bearer $TOKEN" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-d '{"done": true}'
|
||||||
|
|
||||||
# this one is rejected
|
# this one is rejected
|
||||||
|
|
||||||
curl http://localhost:3000/todos \
|
curl http://localhost:3000/todos -X PATCH \
|
||||||
-H "Authorization: Bearer $WAYWARD_TOKEN"
|
-H "Authorization: Bearer $WAYWARD_TOKEN" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-d '{"task": "AAAHHHH!", "done": false}'
|
||||||
|
|
||||||
The server responds with 403 Forbidden:
|
The server responds with 403 Forbidden:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user