{
  "swagger": "2.0",
  "info": {
    "description": "API for the CustomerAPI at www.secure.nu",
    "version": "1.0",
    "title": "Customer API"
  },
  "host": "www.secure.nu",
  "basePath": "/api",
  "schemes": [ "http" ],
  "consumes": [ "application/json" ],
  "produces": [ "application/json" ],
  "paths": {
    "/Customers": {
      "get": {
        "summary": "Access all the customers in the database",
        "operationId": "GetAllCustomers",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful Response",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/customer"
              }
            },
            "examples": {
              "application/json": [
                {
                  "Id": 1,
                  "FirstName": "Muriel",
                  "LastName": "Cook",
                  "StreetAddress": "22523 Willison Street",
                  "City": "Minneapolis",
                  "ZipCode": "55415"
                },
                {
                  "Id": 2,
                  "FirstName": "Kenny",
                  "LastName": "Taylor",
                  "StreetAddress": "493 Sarah Drive",
                  "City": "Lake Charles",
                  "ZipCode": "70601"
                },
                {
                  "Id": 3,
                  "FirstName": "Patrick",
                  "LastName": "Masi",
                  "StreetAddress": "932 White Lane",
                  "City": "Macon",
                  "ZipCode": "31201"
                }
              ]
            }
          }
        }
      }
    },
    "/Customers/{customerid}": {
      "get": {
        "summary": "Find Customer by ID",
        "description": "The ID of the Customer",
        "operationId": "GetCustomer",
        "parameters": [
          {
            "name": "customerid",
            "in": "path",
            "description": "The CustomerID",
            "required": true,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "schema": {
              "type": "object",
              "properties": {}
            },
            "examples": {
              "application/json": {
                "Id": 1,
                "FirstName": "Muriel",
                "LastName": "Cook",
                "StreetAddress": "22523 Willison Street",
                "City": "Minneapolis",
                "ZipCode": "55415"
              }
            }
          }
        }
      }
    }
  },
  "definitions": {
    "customer": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "integer",
          "format": "int32",
          "description": "Customer ID"
        },
        "FirstName": {
          "type": "string",
          "example": "Tore",
          "description": "The first name of the customer"
        },
        "LastName": {
          "type": "string",
          "example": "Nestenius",
          "description": "The last name of the customer"
        },
        "StreetAddress": {
          "type": "string",
          "example": "Storgatan 123",
          "description": "The customer address"
        }
      },
      "title": "customer"
    }
  },
  "parameters": {
    "customerid": {
      "name": "customerid",
      "in": "path",
      "description": "The CustomerID",
      "required": true,
      "type": "integer"
    }
  }
}