TheAbhijeet / API

A REST API made with Django

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API

A REST API for creating and managing user accounts made with Django.

Technologies Used

  • Django = 2
  • djangorestframework = 3.9.4
  • djangorestframework-jwt = 1.11.0
  • Python = 3.6+

How to use

Download the files in your comupter then run pip install -r requirements.txt This will download all the required dependencies in your system.

Next navigate to the API-master directory where the manage.py scrpit exists.

Run python manage.py runserver this will start the django's built in devlopment server, now in your browser go the address http://127.0.0.1:8000/user/signup/ and this is what you should see.

image

Using this browsable API you can create a user providing the valid data in the given fields and hitting the POST button this will return a json object of the user along with the user id

Navigate to http://127.0.0.1:8000/user/login/ here you have to provide the username and password of a valid user this view will return a JWT-token in return of a successful call.

image

About

A REST API made with Django


Languages

Language:Python 100.0%