{
  "openapi" : "3.0.3",
  "info" : {
    "title" : "Til7701 API",
    "version" : "1.0.0"
  },
  "servers" : [ {
    "url" : "https://til7701.de/api/v1"
  }, {
    "url" : "https://tilman.holube.de/api/v1"
  } ],
  "paths" : {
    "/info/request" : {
      "get" : {
        "description" : "This endpoint gives information about where the request came from, like the public IP address and public port.\n",
        "operationId" : "getRequestInfo",
        "responses" : {
          "200" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/requestInfo"
                }
              }
            },
            "description" : "OK"
          }
        },
        "summary" : "Get info about where the request came from and what it contained."
      }
    }
  },
  "components" : {
    "schemas" : {
      "requestInfo" : {
        "description" : "Returned by the /info/request endpoint.\n",
        "properties" : {
          "address" : {
            "description" : "The IP address the request came from.",
            "example" : "1.1.1.1",
            "type" : "string"
          },
          "port" : {
            "description" : "The port number the request was made from.",
            "example" : 12345,
            "type" : "integer"
          }
        },
        "required" : [ "address", "port" ],
        "type" : "object"
      }
    }
  }
}