Skip to content

Latest commit

 

History

History
180 lines (150 loc) · 1.97 KB

README.md

File metadata and controls

180 lines (150 loc) · 1.97 KB

Burgerlivery API

Simple Mock API REST Based to comunicate with Burgerlivery front-end application.

Endpoints

URL Base

https://burgerlivery-api.vercel.app/


GET /categories

Params:
No params

Response:

[
  { 
    id: number,
    text: string, 
    link: string
  }
]

GET /hamburgers

Params:
No params

Response:

[
  {
    id: number,
    image: Array<string>
    title: string,
    description: string
    values: {
      single: number,
      combo: number,
    },
  }
]

GET /appetizers

Params:
No params

Response:

[
  {
    id: number,
    image: string,
    title: string,
    description: string,
    values: {
      small: number | null,
      large: number | null,
    },
  }
]

GET /desserts

Params:
No params

Response:

[
  {
    id: number,
    image: string,
    title: string,
    description: string,
    value: number,
  }
]

GET /beverages

Params:
No params

Response:

[
  {
    id: number,
    image: string,
    title: string,
    description: string,
    value: number,
  }
]

GET /payment/options

Params:
No params

Response:

[
  { 
    id: string,
    value: number,
    text: string 
  }
]

POST /order/create-order

Params:

{
  items: [
    {
      title: string,
      value: number
    }
  ],
  paymentOption: string,
}

Response:

{
  orderNumber: string,
  createdAt: string,
  message: string,
  details: object,
}

POST /user/login

Params:

{
  login: string,
  password: string
}

Response:

{
  userName: string,
  email: string,
  token: string
}

Login data

User 1

login: [email protected]
password: Prior8756@

User 2

login: [email protected]
password: Pedra0143@