From a34034fda25eb8b53098961d27797c1d9a6bbdbe Mon Sep 17 00:00:00 2001 From: Arafat Olayiwola Date: Fri, 5 Jul 2024 09:23:36 +0100 Subject: [PATCH] fix api doc file --- api_doc.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api_doc.txt b/api_doc.txt index f5f6750..86bb846 100644 --- a/api_doc.txt +++ b/api_doc.txt @@ -10,6 +10,10 @@ Auth Endpoints: - Auth: Not required - Response: name, email, password, password2, address +Note: The register endpoint above creates a normal user account. However, an admin account can be gotten from a normal + user account when a superuser logins to Django admin page and update `is_admin` metadata to `true` + and add `Admin` group for the user. + 2. POST /api/users/login/ - Description: login user - Request Body: email, password