Skip to content

anshuman-8/DevChallenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dev Challenge

Local Setup

python3 -m venv virtualenv
source virtualenv/bin/activate
pip3 install -r requirements.txt
  • Make a PostgreSQL database, set up the database name with user and password in DevChallenge/settings.py under DATABASES
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py createsuperuser # create a user 
python3 manage.py runserver

API Docs

Upload DevChallengeDocs.json in Thunder Client's new Collection. For all APIs endpoint and body example.

Auth

  • /api/register to create new user
  • Pass Authorization : Token <'user_token'> in header for APIs requiring user authentication
  • Here <'user_token'> is Auth Token that can be generated by passing username and password to /api/login

  • Code formatting by Black

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages