{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenAPI definition",
    "version": "v0"
  },
  "servers": [
    {
      "url": "http://localhost",
      "description": "Generated server url"
    }
  ],
  "paths": {
    "/oauth/authorize": {
      "post": {
        "tags": [
          "authorization-endpoint"
        ],
        "operationId": "approveOrDeny",
        "parameters": [
          {
            "name": "approvalParameters",
            "in": "query",
            "required": true,
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/View"
                }
              }
            }
          }
        }
      }
    },
    "/oauth/token": {
      "get": {
        "tags": [
          "token-endpoint"
        ],
        "operationId": "getAccessToken",
        "parameters": [
          {
            "name": "parameters",
            "in": "query",
            "required": true,
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/OAuth2AccessToken"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "token-endpoint"
        ],
        "operationId": "postAccessToken",
        "parameters": [
          {
            "name": "parameters",
            "in": "query",
            "required": true,
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/OAuth2AccessToken"
                }
              }
            }
          }
        }
      }
    },
    "/oauth/check_token": {
      "post": {
        "tags": [
          "check-token-endpoint"
        ],
        "operationId": "checkToken",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "View": {
        "type": "object",
        "properties": {
          "contentType": {
            "type": "string"
          }
        }
      },
      "OAuth2AccessToken": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "expiration": {
            "type": "string",
            "format": "date-time"
          },
          "expiresIn": {
            "type": "integer",
            "format": "int32"
          },
          "scope": {
            "uniqueItems": true,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "additionalInformation": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          },
          "expired": {
            "type": "boolean"
          },
          "tokenType": {
            "type": "string"
          },
          "refreshToken": {
            "$ref": "#/components/schemas/OAuth2RefreshToken"
          }
        }
      },
      "OAuth2RefreshToken": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          }
        }
      }
    }
  }
}
