{
  "openapi": "3.0.0",
  "info": {
    "title": "Fusio",
    "version": "1"
  },
  "servers": [
    {
      "url": "http:\/\/127.0.0.1\/"
    }
  ],
  "paths": {
    "\/foo": {
      "get": {
        "tags": [
          "bar"
        ],
        "operationId": "listFoo",
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Collection-Schema"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "bar"
        ],
        "operationId": "createFoo",
        "requestBody": {
          "description": "POST Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Entry-Schema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "POST 201 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Passthru"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "bar"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Collection": {
        "title": "collection",
        "type": "object",
        "properties": {
          "totalResults": {
            "type": "integer"
          },
          "itemsPerPage": {
            "type": "integer"
          },
          "startIndex": {
            "type": "integer"
          },
          "entry": {
            "$ref": "#\/components\/schemas\/Entry"
          }
        }
      },
      "Collection-Schema": {
        "$ref": "#\/components\/schemas\/Collection"
      },
      "Entry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "date": {
            "format": "date-time",
            "type": "string"
          }
        }
      },
      "Entry-Schema": {
        "$ref": "#\/components\/schemas\/Entry"
      },
      "Passthru": {
        "description": "No schema information available",
        "type": "object"
      }
    },
    "securitySchemes": {
      "app": {
        "type": "oauth2",
        "flows": {
          "password": {
            "tokenUrl": "http:\/\/127.0.0.1\/authorization\/token",
            "refreshUrl": "http:\/\/127.0.0.1\/authorization\/token",
            "scopes": {
              "bar": "Bar access",
              "default": "",
              "foo": "Foo access",
              "plan_scope": "Plan scope access"
            }
          },
          "clientCredentials": {
            "tokenUrl": "http:\/\/127.0.0.1\/authorization\/token",
            "refreshUrl": "http:\/\/127.0.0.1\/authorization\/token",
            "scopes": {
              "bar": "Bar access",
              "default": "",
              "foo": "Foo access",
              "plan_scope": "Plan scope access"
            }
          },
          "authorizationCode": {
            "authorizationUrl": "http:\/\/127.0.0.1\/apps\/developer\/#!\/auth",
            "tokenUrl": "http:\/\/127.0.0.1\/authorization\/token",
            "refreshUrl": "http:\/\/127.0.0.1\/authorization\/token",
            "scopes": {
              "bar": "Bar access",
              "default": "",
              "foo": "Foo access",
              "plan_scope": "Plan scope access"
            }
          }
        }
      }
    }
  }
}