Skip to content

A sample Django appplication with JWT token authentication and CRUD operations

Notifications You must be signed in to change notification settings

hariprasadpo28/Django-REST-API-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django-REST-API-application

A sample Django appplication with JWT token authentication and CRUD operations

#urls:

adviser/ --> Takes POST request in which data (adviser name and photo url) has to be sent in JSON foramt.

user/register/ --> Takes POST request of username and password and if the data is valid it will create a new user.

user/login/ --> Takes POST request of username and password and returns the JWT token

user/<>/ --> Takes GET request and returns the details of the user id, username in JSON format (parameters: user id)

user/<>/advisor/ --> Takes GET request and returns all the advisors list (adviser name, adviser id, adviser phot url) (parameters: user id)

user/<>/advisor/<>/ Takes POST request (booking_time in JSON) and creates a booking with the user and the adviser (parameters userid, advisor id)

user/<>/advisor/booking/ Takes GET request and returns a list of all bookings made by the user with each divisor with whom they made a booking (parameters: advisor id)

About

A sample Django appplication with JWT token authentication and CRUD operations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages