Minor doc fix for curl header and api URL

This commit is contained in:
AbegaM
2024-06-04 17:23:51 +03:00
parent 135cbfbb17
commit 4df2be4f6a
2 changed files with 3 additions and 3 deletions

View File

@@ -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. 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 ```bash
curl http://localhost:8000/api/auth/change-password \ curl http://localhost:8000/api/auth/logout \
--cookie 'accessToken=<jwt-access-token>' \ --cookie 'accessToken=<jwt-access-token>' \
--cookie 'refreshToken=<jwt-refresh-token>' --cookie 'refreshToken=<jwt-refresh-token>'
``` ```

View File

@@ -80,7 +80,7 @@ To create permissions for a Role call `/tables/_roles_permissions/rows/` endpoin
curl --request POST \ curl --request POST \
--url http://localhost:8000/api/tables/_roles_permissions/rows/ \ --url http://localhost:8000/api/tables/_roles_permissions/rows/ \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--header 'Cookie: <jwt-access-token>' \ --header 'Cookie: accessToken=<jwt-access-token>' \
--data '{ --data '{
"fields": { "fields": {
"role_id": 2, "role_id": 2,
@@ -115,7 +115,7 @@ To assign roles to a user call `/tables/_users_roles/rows/` endpoint with `POST`
curl --request POST \ curl --request POST \
--url http://localhost:8000/api/tables/_users_roles/rows/ \ --url http://localhost:8000/api/tables/_users_roles/rows/ \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--header 'Cookie: <jwt-access-token>' \ --header 'Cookie: accessToken=<jwt-access-token>' \
--data '{ --data '{
"fields": { "fields": {
"user_id": 1, "user_id": 1,