From 4df2be4f6a75f25d995493ccb451d5e2debf7450 Mon Sep 17 00:00:00 2001 From: AbegaM Date: Tue, 4 Jun 2024 17:23:51 +0300 Subject: [PATCH] Minor doc fix for curl header and api URL --- docs/api/auth-examples.md | 2 +- docs/api/rows-auth-examples.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/auth-examples.md b/docs/api/auth-examples.md index 4e12f7b..bc39f61 100644 --- a/docs/api/auth-examples.md +++ b/docs/api/auth-examples.md @@ -145,7 +145,7 @@ Response In order to logout from your account e.g. remove access and refresh cookies and also revoke your refresh token (access token lifetime is very short and doesn't need to be revoked) call `/auth/logout/` endpoint with `GET` method. ```bash -curl http://localhost:8000/api/auth/change-password \ +curl http://localhost:8000/api/auth/logout \ --cookie 'accessToken=' \ --cookie 'refreshToken=' ``` diff --git a/docs/api/rows-auth-examples.md b/docs/api/rows-auth-examples.md index 0d1d9f4..d2b59fc 100644 --- a/docs/api/rows-auth-examples.md +++ b/docs/api/rows-auth-examples.md @@ -80,7 +80,7 @@ To create permissions for a Role call `/tables/_roles_permissions/rows/` endpoin curl --request POST \ --url http://localhost:8000/api/tables/_roles_permissions/rows/ \ --header 'Content-Type: application/json' \ - --header 'Cookie: ' \ + --header 'Cookie: accessToken=' \ --data '{ "fields": { "role_id": 2, @@ -115,7 +115,7 @@ To assign roles to a user call `/tables/_users_roles/rows/` endpoint with `POST` curl --request POST \ --url http://localhost:8000/api/tables/_users_roles/rows/ \ --header 'Content-Type: application/json' \ - --header 'Cookie: ' \ + --header 'Cookie: accessToken=' \ --data '{ "fields": { "user_id": 1,