Skip to content

RuzibekGit/DRF_E-Commerce

Repository files navigation

* This project has not been completed yet...


DRF E-Commerce

This repository contains a comprehensive e-commerce application built using Django Rest Framework (DRF). The project includes various features essential for an online store, such as user management, product management, cart functionality, and order processing.

users/register/

paylaod

{
	"first_name": "",
	"last_name": "",
	"username": "",
	"email": "",
	"password": "",
	"confirm_password": ""
}

response

{  
  
	"status": True,
	"message": "Successfully registered, code sent to you email",
	"access_token": "token",
	"auth_status": "NEW"
}
}

users/verify/

paylaod

{
	"code": ""
}

response

{
	"status": True,
	"access_token": "token",
	"auth_status": "VERIFIED"
}

users/login/

paylaod

{
	"username": "",
	"password": ""
}

response

{
	"status": True,
	"access_token": "token",
	"refresh_token": "token"
}

users/resend/code/

response

{
	"status": True,
	"message": "Code send successfully",
	"auth_status": "NEW"
}

users/password/forget/

paylaod

{
	"email": ""
}

response

{
	"status": True,
	"message": "Code send to email"
}

users/password/update/

paylaod

{
	"password": "",
	"conform_password": ""
}

response

{
	"status": True,
	"message": "Password changed"
}

Product

products/add/

paylaod

{
	"name": "",
	"price": "",
	"photo": "",
	"decription": "",
	"quantity": ""
}

response

{
	"status": True,
	"message": "added",
	"data": {
			"product details"
	}
}

products/update/ -> put and patch

paylaod

{
	"name": "",
	"price": "",
	"photo": "",
	"decription": "",
	"quantity": ""
}

response

{
	"status": True,
	"message": "Updated",
	"data": {
			"product details"
	}
}

products/<int:pk>/delete/

response

{
	"status": True,
	"message": "Deleted"
}

products/<int:pk>/detail/

response

{
	"id": "",
	"name": "",
	"price": "",
	"photo": "",
	"decription": "",
	"quantity": ""
}