It is a simple django rest project, it is available on https://farooqhidayat.pythonanywhere.com
Only GET request https://farooqhidayat.pythonanywhere.com/api/test
- Response List of Objects (Paginated)
- GET Response List of Objects (Non-Paginated)
- POST Response Posted Object
JSON Payload:
- { "email": "[email protected]" } OR
- { "email": ["[email protected]", "[email protected]"] }
- { "send": true, "message": "success" } OR
- { "sent": false, "message": "error message" }
registration end-point: https://farooqhidayat.pythonanywhere.com/api/register/signup/ api to register a user
It requires a json payload to be posted
{ “email”: “[email protected]”, “password”: “yourpassword”}
after that you need to activate your user using the
verification end-point: https://farooqhidayat.pythonanywhere.com/api/register/verify/
it also requires a json payload to be posted
{ “email”: “[email protected]”, “verification_code”: “code_you received_in_your_email”}
Note: “It has been built such a way that verfication code expires after 10 minutes”
After Cloning the Project
Create environment.py file inside the /myproject/myproject/
and copy these statements
ENV = "DEV"
ALLOWED_HOSTS = []
SECRET_KEY = "mysecretkey"
TIME_ZONE = 'UTC'
EMAIL = "[email protected]"
PASSWORD = "yourpassword"