You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to the documentation for Dispatch Hub! This guide provides developers with the necessary information to interact with our API and integrate it into their applications.
7
6
@@ -90,3 +89,25 @@ python manage.py test
90
89
```
91
90
python manage.py test <app_name>.tests.<test_file>
92
91
```
92
+
93
+
# Authentication
94
+
Authentication is required for most endpoints in the API. To authenticate, include an access token in the `Authorization` header of your request. The access token can be obtained by logging in to your account or registering a new account.
95
+
96
+
# API Authentication Endpoints
97
+
The following endpoints are available in the API:
98
+
99
+
-`api/user/signup/` (POST): to allow users register an account.
100
+
-`api/user/login/` (POST): to allow users to log in into their account.
101
+
-`api/user/login/refresh/` (POST): to allow user refresh to get their access token after it expires.
102
+
-`api/user/confirm-email/<uidb64>/<token>/` (GET): to allow users confirm their email address.
103
+
-`api/user/logout/` (POST): to allow users to log out of their account.
104
+
-`api/user/change_password/` (POST): to allow users change there account password.
0 commit comments