mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-26 15:54:36 +02:00
Updated Setting up Authentication (markdown)
@@ -94,8 +94,10 @@ To see API docs, try endpoints interactively, and see how auth works, visit this
|
|||||||
|
|
||||||
<img width="738" alt="Screenshot of django-ninja Swagger API docs page" src="https://github.com/ArchiveBox/ArchiveBox/assets/511499/ad914143-f48b-4d4e-aa8c-f89a2c70cee7">
|
<img width="738" alt="Screenshot of django-ninja Swagger API docs page" src="https://github.com/ArchiveBox/ArchiveBox/assets/511499/ad914143-f48b-4d4e-aa8c-f89a2c70cee7">
|
||||||
|
|
||||||
To get started using the REST API, generate an API key for your user through the Admin Web UI: `[http://127.0.0.1:8000/admin/api/apitoken/add/`](http://127.0.0.1:8000/admin/api/apitoken/add/) or by calling the `http://127.0.0.1:8000/api/v1/auth/get_api_token` endpoint:
|
To get started using the REST API, you can generate an API key for your user in the Admin Web UI:
|
||||||
|
[`http://127.0.0.1:8000/admin/api/apitoken/add/`](http://127.0.0.1:8000/admin/api/apitoken/add/)
|
||||||
|
|
||||||
|
or by calling the `http://127.0.0.1:8000/api/v1/auth/get_api_token` endpoint:
|
||||||
```bash
|
```bash
|
||||||
curl -X 'POST' \
|
curl -X 'POST' \
|
||||||
'http://127.0.0.1:8000/api/v1/auth/get_api_token' \
|
'http://127.0.0.1:8000/api/v1/auth/get_api_token' \
|
||||||
|
Reference in New Issue
Block a user