From 9a9d6a035128d1977441c0b22f963f3bd8af26b1 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Fri, 3 May 2024 17:59:40 -0700 Subject: [PATCH] Updated Setting up Authentication (markdown) --- Setting-up-Authentication.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Setting-up-Authentication.md b/Setting-up-Authentication.md index 9da01b1..0397a6e 100644 --- a/Setting-up-Authentication.md +++ b/Setting-up-Authentication.md @@ -94,8 +94,10 @@ To see API docs, try endpoints interactively, and see how auth works, visit this Screenshot of django-ninja Swagger API docs page -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 curl -X 'POST' \ 'http://127.0.0.1:8000/api/v1/auth/get_api_token' \