fixed password update not working
This commit is contained in:
17
README.md
17
README.md
@@ -40,6 +40,23 @@ To load initial location data use: `python manage.py addgeo`
|
||||
## Endpoints
|
||||
|
||||
|
||||
### Authentication
|
||||
|
||||
Implemented using `djangorestframework-simplejwt`
|
||||
|
||||
|
||||
New token pair endpoint: `/api/v1/token/`
|
||||
|
||||
Response:
|
||||
```json
|
||||
{
|
||||
"refresh": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTYxMjI3MTcwNSwianRpIjoiZDU4YTgzYzFkYzFkNDI5MTljMGQ0NzcxNzljNzUxYTQiLCJ1c2VyX2lkIjo4fQ.yln80W5lONSyHwwqF4qBBHteqLuRfdLLWuaQANr_vxc",
|
||||
"access": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjEyMTg4OTA1LCJqdGkiOiIzNGIxMzM3NmU4MWI0OWY5YjU3ZmUxM2M5NThmZWZkYiIsInVzZXJfaWQiOjh9.aRDCUvKj7LCvixjPLC9ghy0h7rfRwR6Lo3A7HX4kSHE"
|
||||
}
|
||||
```
|
||||
Refresh expired token endpoint: `/api/v1/token/refresh/`
|
||||
|
||||
|
||||
### Users
|
||||
|
||||
Endpoint url: `/api/v1/users/`
|
||||
|
||||
Reference in New Issue
Block a user