Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Django-Rest-Example

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)
Both GET and POST requests https://farooqhidayat.pythonanywhere.com/api/test/create
  • GET Response List of Objects (Non-Paginated)
  • POST Response Posted Object
Send Email: POST request https://farooqhidayat.pythonanywhere.com/api/test/sendemail
JSON Payload: Response:
  • { "send": true, "message": "success" } OR
  • { "sent": false, "message": "error message" }

User Registration

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”

Note:

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"

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages