{
  "swagger": "2.0",
  "info": {
    "version": "0.0.1",
    "title": "Fake endpoints definition"
  },
  "paths": {
    "/employee": {
      "get": {
        "summary": "retrieve employee",
        "operationId": "getEmployee",
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "existing employee",
            "schema": {
              "$ref": "#/definitions/Employee"
            }
          }
        }
      },
      "post": {
        "summary": "Create new employee",
        "description": "Create a new employee, by sending details and get back the id of a newly created employee",
        "operationId": "createEmployee",
        "consumes": [
          "application/json"
        ],
        "produces": [
          "application/json"
        ],
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/Employee"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "customer already exists",
            "schema": {
              "$ref": "#/definitions/Id"
            }
          },
          "201": {
            "description": "customer created successfully",
            "schema": {
              "$ref": "#/definitions/Id"
            }
          }
        }
      }
    }
  },
  "definitions": {
    "Employee": {
      "type": "object",
      "required": [
        "firstName",
        "lastName"
      ],
      "properties": {
        "firstName": {
          "type": "string",
          "description": "first name of an employee"
        },
        "lastName": {
          "type": "string",
          "description": "last name of an employee"
        }
      }
    },
    "Id": {
      "type": "object",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "employee unique identifier"
        }
      }
    }
  }
}
