Order Pizza API (1.0)

Download OpenAPI specification:Download

A REST-ful API for pizza ordering.

Orders

Return list of Pizza orders

Read the entire set of orders, sorted by timestamp.

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create an order

Create a new person

Request Body schema: application/json

Order to create

Table_No
integer

Customer's table number

Flavor
string

Flavor of the pizza

Crust
string

Crust for the pizza

Size
string

Size of the pizza

Responses

Request samples

Content type
application/json
{
  • "Table_No": 0,
  • "Flavor": "string",
  • "Crust": "string",
  • "Size": "string"
}

Response samples

Content type
application/json
{
  • "Table_No": 0,
  • "Order_ID": 0,
  • "Flavor": "string",
  • "Crust": "string",
  • "Size": "string",
  • "Timestamp": "string"
}

Delete an order from the orders list

Delete an order

path Parameters
Order_ID
required
integer

ID of order to delete

Responses

Auth

Create an access token

Create an access token for user to login

Request Body schema: application/json

token to create

username
string

username of user

password
string

password of user

Responses

Request samples

Content type
application/json
{
  • "username": "string",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "access_token": "string"
}