Skip to content

An API for dryce created with Python using the Django framework

Notifications You must be signed in to change notification settings

Rquaicoo/dryce-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

API reference for Dryce

Dryce is a mobile application that allows its users to send laundry request through a vendor. A vendor can be registered through our web application.

Installation

Clone the project with git

  git clone https:/Rquaicoo/dryce-api.git

Run locally

to start the project, go to the project directory

cd dryce

Install dependencies

pip install -r requirements.txt

Start the server

pyhton manage.py runserver

The app starts by default at port 8000 to run at a custom port, run:

python manage.py runserver [specify port number]

API Reference

Get all items in cart

  GET /api/cart
Parameter Type Description
token string Required. Your auth token

Create a cart

  POST /api/cart
Parameter Type Description
token string Required. Your auth token
shirts int Required. Number of shirts
dresses int Required. Number of dresses
trousers int Required. Number of trousers
cardigans int Required. Number of cardigans
jeans int Required. Number of jeans
blouses int Required. Number of blouses

Update a cart

  PUT /api/cart
Parameter Type Description
token string Required. Your auth token
shirts int Required. Number of shirts
dresses int Required. Number of dresses
trousers int Required. Number of trousers
cardigans int Required. Number of cardigans
jeans int Required. Number of jeans
blouses int Required. Number of blouses

Get order

  GET /api/items/${id}
Parameter Type Description
id string Required. Id of item to fetch
token string Required. Your authentication token

Create user

  POST /api/auth/register/

Login user

  POST /api/auth/login/

Validate email

  POST /api/auth/Validate_email/

Validate username

  POST /api/auth/Validate_username/

Logout user

  POST /api/auth/logout/

Reset password

  GET /api/cart
Parameter Type Description
token string Required. Your auth token
otp string Required. An otp send to the email

About

An API for dryce created with Python using the Django framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published