{
  "swagger": "2.0",
  "info": {
    "description": "This is a sample project for the coveapi test tool",
    "title": "CoveAPI Example Project",
    "contact": {},
    "license": {
      "name": "MIT",
      "url": "https://raw.githubusercontent.com/yezz123/coveapi/main/LICENSE"
    },
    "version": "1.0"
  },
  "host": "localhost:8080",
  "basePath": "/",
  "paths": {
    "/": {
      "get": {
        "description": "get information on CoveAPI example API",
        "produces": [
          "application/json"
        ],
        "summary": "provide basic info on this API",
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/controller.BaseResponse"
            }
          }
        }
      }
    },
    "/validate": {
      "post": {
        "security": [
          {
            "CoolAuthStuff": []
          }
        ],
        "description": "checks if a given state is a valid weather state",
        "produces": [
          "application/json"
        ],
        "summary": "validates weather state",
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/controller.IsValid"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/util.ErrorMessage"
            }
          }
        }
      }
    },
    "/weather": {
      "get": {
        "description": "gets current weather from a set of states",
        "produces": [
          "application/json"
        ],
        "summary": "provides current weather",
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/controller.WeatherStatus"
            }
          }
        }
      }
    }
  },
  "definitions": {
    "controller.BaseResponse": {
      "type": "object",
      "properties": {
        "message": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      }
    },
    "controller.IsValid": {
      "type": "object",
      "properties": {
        "valid": {
          "type": "boolean"
        }
      }
    },
    "controller.WeatherStatus": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string"
        }
      }
    },
    "util.ErrorMessage": {
      "type": "object",
      "properties": {
        "message": {
          "type": "string"
        }
      }
    }
  },
  "securityDefinitions": {
    "CoolAuthStuff": {
      "type": "basic"
    }
  }
}