Skip to content

A product review backend based on django rest framework, complete with image uploading, filtersets, and auth system with JWT.

Notifications You must be signed in to change notification settings

AshishPandagre/drf-product-review-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Product Review Backend

This project is based on django and django rest framework.

Features

  • Basic auth features (register, login, logout, change password)
  • Authentication using JWT
  • Docs created using drf-yasg and swagger ui
  • Image uploading feature

Db design

Usage

git clone https://github.com/AshishPandagre/drf-product-review-backend.git
cd better-blog
python manage.py createsuperuser [enter details]
python manage.py runserver

Head over to /docs to get a complete list of all the endpoints.

Querying methods (additional ones)

  • Product List - GET /product/
    • if you want to include spesific fields, add ?fields=pk,name
    • if you want to leave out the content field, add ?omit=content
    • if you want to expand nested relations, add ?expand=category
    • only product name and category name, add ?expand=category&fields=name,category.name
    • if you need a product list response with category, comments and sites (with product size and company) and we dont need a product content field. And category id must be 4. we can do : /product/?expand=category,comments,sites.company,sites.productsize&omit=content&category=4

Screenshots

About

A product review backend based on django rest framework, complete with image uploading, filtersets, and auth system with JWT.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published