Skip to content

Code7unner/leadersofdigital2020-backend

Repository files navigation

Digital hackathon backand api

Docs Status

User routes:

POST

  • /api/v1/user/create
{
  "id": 1,
  "name": "Name",
  "phone": "+79149647499",
  "password": "1234",
  "address": "test",
  "sex": "male",
  "role": "admin"
}

GET

  • /api/v1/user/{id}

DELETE

  • /api/v1/user/delete/{id}

Products routes:

POST

  • /api/v1/products/create
{
  "id": 1,
  "name": "name",
  "type": "meat",
  "description": "1kg of meat",
  "price": 329.0,
  "img_url": "google.com/images",
  "additional_info": "super good meat"
}

GET

  • /api/v1/products/get
  • /api/v1/products/get/{type}
  • /api/v1/products/get/{order_id}

DELETE

  • /api/v1/products/delete/{id}

Order routes:

POST

  • /api/v1/order/create
{
  "id": 1,
  "courier_id": 2,
  "status": true
}

GET

  • /api/v1/order/delete/{id}
  • /api/v1/order/{id}
  • /api/v1/order/{courier_id}

DELETE

  • /api/v1/order/delete/{id}

Store routes:

POST

  • /api/v1/store/create
{
  "id": 1,
  "name": "name",
  "address": "test street"
}

GET

  • /api/v1/store/delete/{id}

DELETE

  • /api/v1/store/delete/{id}

Register user:

POST

  • /register
{
  "phone": "+79149647499",
  "password": "pass"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages