Skip to content

shubhamagrawal1906/cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cart

Description :-

It is a cart system api that involve the creation and retrieval of order and its order items. It is developed using django rest framework and for the authentication token based scheme is used. To authenticate user, you have to add token with headers in each api you call, that is retrieved from login.

Add it in header as given below -

Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b

User need to approved after order any item. The link has been sent to registered email of user. Click that link to approve your order.

Requiements are provided in requirements.txt :-

Django==1.11.3

django-filter==1.0.4

djangorestframework==3.6.3

Markdown==2.6.8

pytz==2017.2

Urls are :-

  1. /auth/signup/ --> To register new user

  2. /auth/login/ --> To login existig user

  3. /order/create/ --> To create new order for authenticated user

  4. /order/validate/token/ --> To approve created order

  5. /order/order_id/ --> To get detail of specific order of authenticated user only

  6. /order/?page=n --> To get all orders of authenticated user only with pagination

  7. /orderitem/create/ --> To create item according to order for authenticated user

  8. /orderitem/order_id/?page=n --> To get all order items of specific order of authenticated user only with pagination

About

Created orders and orderitems.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages