Skip to content

ubirajarapelli/burgerlivery-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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@

Releases

No releases published

Packages

No packages published