{
  "paths": {
    "/order": {
      "post": {
        "x-auth-type": "Application & Application User",
        "x-throttling-tier": "Unlimited",
        "description": "Create a new Order",
        "parameters": [{
          "schema": {
            "$ref": "#/definitions/Order"
          },
          "description": "Order object that needs to be added",
          "name": "body",
          "required": true,
          "in": "body"
        }],
        "responses": {
          "201": {
            "headers": {
              "Location": {
                "description": "The URL of the newly created resource.",
                "type": "string"
              }
            },
            "schema": {
              "$ref": "#/definitions/Order"
            },
            "description": "Created."
          }
        }
      }
    },
    "/menu": {
      "get": {
        "x-auth-type": "Application & Application User",
        "x-throttling-tier": "Unlimited",
        "description": "Return a list of available menu items",
        "parameters": [],
        "responses": {
          "200": {
            "headers": {},
            "schema": {
              "title": "Menu",
              "properties": {
                "list": {
                  "items": {
                    "$ref": "#/definitions/MenuItem"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            },
            "description": "OK."
          }
        }
      }
    }
  },
  "schemes": ["https"],
  "produces": ["application/json"],
  "swagger": "2.0",
  "definitions": {
    "MenuItem": {
      "title": "Pizza menu Item",
      "properties": {
        "price": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "image": {
          "type": "string"
        }
      },
      "required": ["name"]
    },
    "Order": {
      "title": "Pizza Order",
      "properties": {
        "customerName": {
          "type": "string"
        },
        "delivered": {
          "type": "boolean"
        },
        "address": {
          "type": "string"
        },
        "pizzaType": {
          "type": "string"
        },
        "creditCardNumber": {
          "type": "string"
        },
        "quantity": {
          "type": "number"
        },
        "orderId": {
          "type": "integer"
        }
      },
      "required": ["orderId"]
    }
  },
  "consumes": ["application/json"],
  "info": {
    "title": "PizzaShackAPI",
    "description": "This document describe a RESTFul API for Pizza Shack online pizza delivery store.\\n",
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "contact": {
      "email": "architecture@pizzashack.com",
      "name": "John Doe",
      "url": "http://www.pizzashack.com"
    },
    "version": "1.0.0"
  }
}
