{
  "openapi": "3.0.0",
  "info": {
    "title": "Fusio",
    "version": "1"
  },
  "servers": [
    {
      "url": "http:\/\/127.0.0.1\/"
    }
  ],
  "paths": {
    "\/consumer\/password_reset": {
      "put": {
        "tags": [
          "consumer.user"
        ],
        "operationId": "Consumer_Action_User_ResetPassword_Execute",
        "requestBody": {
          "description": "PUT Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Consumer_User_PasswordReset"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "PUT 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Message"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "consumer.user"
        ],
        "operationId": "Consumer_Action_User_ResetPassword_Request",
        "requestBody": {
          "description": "POST Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Consumer_User_Email"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "POST 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Message"
                }
              }
            }
          }
        }
      }
    },
    "\/consumer\/register": {
      "post": {
        "tags": [
          "consumer.user"
        ],
        "operationId": "Consumer_Action_User_Register",
        "requestBody": {
          "description": "POST Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Consumer_User_Register"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "POST 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Message"
                }
              }
            }
          }
        }
      }
    },
    "\/consumer\/provider\/{provider}": {
      "post": {
        "tags": [
          "consumer.user"
        ],
        "operationId": "Consumer_Action_User_Provider",
        "requestBody": {
          "description": "POST Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Consumer_User_Provider"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "POST 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_User_JWT"
                }
              }
            }
          }
        }
      },
      "parameters": [
        {
          "name": "provider",
          "in": "path",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "\/consumer\/login": {
      "put": {
        "tags": [
          "consumer.user"
        ],
        "operationId": "Consumer_Action_User_Refresh",
        "requestBody": {
          "description": "PUT Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Consumer_User_Refresh"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "PUT 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_User_JWT"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "consumer.user"
        ],
        "operationId": "Consumer_Action_User_Login",
        "requestBody": {
          "description": "POST Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Consumer_User_Login"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "POST 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_User_JWT"
                }
              }
            }
          }
        }
      }
    },
    "\/consumer\/authorize": {
      "get": {
        "tags": [
          "consumer.user"
        ],
        "operationId": "Consumer_Action_User_GetApp",
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Authorize_Meta"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "consumer.user"
        ],
        "operationId": "Consumer_Action_User_Authorize",
        "requestBody": {
          "description": "POST Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Consumer_Authorize_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "POST 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Authorize_Response"
                }
              }
            }
          }
        }
      }
    },
    "\/consumer\/activate": {
      "post": {
        "tags": [
          "consumer.user"
        ],
        "operationId": "Consumer_Action_User_Activate",
        "requestBody": {
          "description": "POST Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Consumer_User_Activate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "POST 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Message"
                }
              }
            }
          }
        }
      }
    },
    "\/consumer\/account\/change_password": {
      "put": {
        "tags": [
          "consumer.user"
        ],
        "operationId": "Consumer_Action_User_ChangePassword",
        "requestBody": {
          "description": "PUT Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Backend_Account_ChangePassword"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "PUT 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Message"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.user"
            ]
          }
        ]
      }
    },
    "\/consumer\/account": {
      "get": {
        "tags": [
          "consumer.user"
        ],
        "operationId": "Consumer_Action_User_Get",
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_User_Account"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.user"
            ]
          }
        ]
      },
      "put": {
        "tags": [
          "consumer.user"
        ],
        "operationId": "Consumer_Action_User_Update",
        "requestBody": {
          "description": "PUT Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Consumer_User_Account"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "PUT 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Message"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.user"
            ]
          }
        ]
      }
    },
    "\/consumer\/transaction\/{transaction_id}": {
      "get": {
        "tags": [
          "consumer.transaction"
        ],
        "operationId": "Consumer_Action_Transaction_Get",
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Transaction"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.transaction"
            ]
          }
        ]
      },
      "parameters": [
        {
          "name": "transaction_id",
          "in": "path",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "\/consumer\/transaction": {
      "get": {
        "tags": [
          "consumer.transaction"
        ],
        "operationId": "Consumer_Action_Transaction_GetAll",
        "parameters": [
          {
            "name": "startIndex",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Transaction_Collection"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.transaction"
            ]
          }
        ]
      }
    },
    "\/consumer\/subscription\/{subscription_id}": {
      "get": {
        "tags": [
          "consumer.subscription"
        ],
        "operationId": "Consumer_Action_Event_Subscription_Get",
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Event_Subscription"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.subscription"
            ]
          }
        ]
      },
      "put": {
        "tags": [
          "consumer.subscription"
        ],
        "operationId": "Consumer_Action_Event_Subscription_Update",
        "requestBody": {
          "description": "PUT Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Consumer_Event_Subscription_Update"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "PUT 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Message"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.subscription"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "consumer.subscription"
        ],
        "operationId": "Consumer_Action_Event_Subscription_Delete",
        "responses": {
          "200": {
            "description": "DELETE 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Message"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.subscription"
            ]
          }
        ]
      },
      "parameters": [
        {
          "name": "subscription_id",
          "in": "path",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "\/consumer\/subscription": {
      "get": {
        "tags": [
          "consumer.subscription"
        ],
        "operationId": "Consumer_Action_Event_Subscription_GetAll",
        "parameters": [
          {
            "name": "startIndex",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Event_Subscription_Collection"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.subscription"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "consumer.subscription"
        ],
        "operationId": "Consumer_Action_Event_Subscription_Create",
        "requestBody": {
          "description": "POST Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Consumer_Event_Subscription_Create"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "POST 201 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Message"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.subscription"
            ]
          }
        ]
      }
    },
    "\/consumer\/scope": {
      "get": {
        "tags": [
          "consumer.scope"
        ],
        "operationId": "Consumer_Action_Scope_GetAll",
        "parameters": [
          {
            "name": "startIndex",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Scope_Collection"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.scope"
            ]
          }
        ]
      }
    },
    "\/consumer\/plan\/{plan_id}": {
      "get": {
        "tags": [
          "consumer.plan"
        ],
        "operationId": "Consumer_Action_Plan_Get",
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Plan"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.plan"
            ]
          }
        ]
      },
      "parameters": [
        {
          "name": "plan_id",
          "in": "path",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "\/consumer\/plan": {
      "get": {
        "tags": [
          "consumer.plan"
        ],
        "operationId": "Consumer_Action_Plan_GetAll",
        "parameters": [
          {
            "name": "startIndex",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Plan_Collection"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.plan"
            ]
          }
        ]
      }
    },
    "\/consumer\/payment\/{provider}\/checkout": {
      "post": {
        "tags": [
          "consumer.payment"
        ],
        "operationId": "Consumer_Action_Payment_Checkout",
        "requestBody": {
          "description": "POST Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Consumer_Payment_Checkout_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "POST 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Payment_Checkout_Response"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.payment"
            ]
          }
        ]
      },
      "parameters": [
        {
          "name": "provider",
          "in": "path",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "\/consumer\/payment\/{provider}\/portal": {
      "post": {
        "tags": [
          "consumer.payment"
        ],
        "operationId": "Consumer_Action_Payment_Portal",
        "responses": {
          "200": {
            "description": "POST 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Payment_Portal_Response"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.payment"
            ]
          }
        ]
      },
      "parameters": [
        {
          "name": "provider",
          "in": "path",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "\/consumer\/page\/{page_id}": {
      "get": {
        "tags": [
          "consumer.page"
        ],
        "operationId": "Consumer_Action_Page_Get",
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Page"
                }
              }
            }
          }
        }
      },
      "parameters": [
        {
          "name": "page_id",
          "in": "path",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "\/consumer\/page": {
      "get": {
        "tags": [
          "consumer.page"
        ],
        "operationId": "Consumer_Action_Page_GetAll",
        "parameters": [
          {
            "name": "startIndex",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Page_Collection"
                }
              }
            }
          }
        }
      }
    },
    "\/consumer\/log\/{log_id}": {
      "get": {
        "tags": [
          "consumer.log"
        ],
        "operationId": "Consumer_Action_Log_Get",
        "parameters": [
          {
            "name": "startIndex",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Log"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.log"
            ]
          }
        ]
      },
      "parameters": [
        {
          "name": "log_id",
          "in": "path",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "\/consumer\/log": {
      "get": {
        "tags": [
          "consumer.log"
        ],
        "operationId": "Consumer_Action_Log_GetAll",
        "parameters": [
          {
            "name": "startIndex",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Log_Collection"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.log"
            ]
          }
        ]
      }
    },
    "\/consumer\/grant\/{grant_id}": {
      "delete": {
        "tags": [
          "consumer.grant"
        ],
        "operationId": "Consumer_Action_Grant_Delete",
        "responses": {
          "204": {
            "description": "DELETE 204 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Message"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.grant"
            ]
          }
        ]
      },
      "parameters": [
        {
          "name": "grant_id",
          "in": "path",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "\/consumer\/grant": {
      "get": {
        "tags": [
          "consumer.grant"
        ],
        "operationId": "Consumer_Action_Grant_GetAll",
        "parameters": [
          {
            "name": "startIndex",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Grant_Collection"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.grant"
            ]
          }
        ]
      }
    },
    "\/consumer\/event": {
      "get": {
        "tags": [
          "consumer.event"
        ],
        "operationId": "Consumer_Action_Event_GetAll",
        "parameters": [
          {
            "name": "startIndex",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_Event_Collection"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.event"
            ]
          }
        ]
      }
    },
    "\/consumer\/app\/{app_id}": {
      "get": {
        "tags": [
          "consumer.app"
        ],
        "operationId": "Consumer_Action_App_Get",
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_App"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.app"
            ]
          }
        ]
      },
      "put": {
        "tags": [
          "consumer.app"
        ],
        "operationId": "Consumer_Action_App_Update",
        "requestBody": {
          "description": "PUT Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Consumer_App_Update"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "PUT 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Message"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.app"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "consumer.app"
        ],
        "operationId": "Consumer_Action_App_Delete",
        "responses": {
          "200": {
            "description": "DELETE 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Message"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.app"
            ]
          }
        ]
      },
      "parameters": [
        {
          "name": "app_id",
          "in": "path",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "\/consumer\/app": {
      "get": {
        "tags": [
          "consumer.app"
        ],
        "operationId": "Consumer_Action_App_GetAll",
        "parameters": [
          {
            "name": "startIndex",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Consumer_App_Collection"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.app"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "consumer.app"
        ],
        "operationId": "Consumer_Action_App_Create",
        "requestBody": {
          "description": "POST Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Consumer_App_Create"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "POST 201 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Message"
                }
              }
            }
          }
        },
        "security": [
          {
            "app": [
              "consumer.app"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Account_ChangePassword": {
        "type": "object",
        "properties": {
          "oldPassword": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128
          },
          "newPassword": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128
          },
          "verifyPassword": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128
          }
        }
      },
      "App": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "userId": {
            "type": "integer"
          },
          "status": {
            "type": "integer"
          },
          "name": {
            "type": "string",
            "pattern": "^[A-z0-9\\-\\_]{3,64}$"
          },
          "url": {
            "type": "string",
            "minLength": 8
          },
          "appKey": {
            "type": "string"
          },
          "appSecret": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "App_Collection": {
        "$ref": "#\/components\/schemas\/Collection"
      },
      "App_Create": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "pattern": "^[A-z0-9\\-\\_]{3,64}$"
          },
          "url": {
            "type": "string",
            "minLength": 8
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "name",
          "url",
          "scopes"
        ]
      },
      "App_Update": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "pattern": "^[A-z0-9\\-\\_]{3,64}$"
          },
          "url": {
            "type": "string",
            "minLength": 8
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "name",
          "url",
          "scopes"
        ]
      },
      "Authorize_Meta": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "$ref": "#\/components\/schemas\/Scope"
            }
          }
        }
      },
      "Authorize_Request": {
        "type": "object",
        "properties": {
          "responseType": {
            "type": "string"
          },
          "clientId": {
            "type": "string"
          },
          "redirectUri": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "allow": {
            "type": "boolean"
          }
        },
        "required": [
          "responseType",
          "clientId",
          "scope",
          "allow"
        ]
      },
      "Authorize_Response": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "token": {
            "$ref": "#\/components\/schemas\/Authorize_Response_Token"
          },
          "code": {
            "type": "string"
          },
          "redirectUri": {
            "type": "string"
          }
        }
      },
      "Authorize_Response_Token": {
        "type": "object",
        "properties": {
          "access_token": {
            "type": "string"
          },
          "token_type": {
            "type": "string"
          },
          "expires_in": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          }
        }
      },
      "Backend_Account_ChangePassword": {
        "$ref": "#\/components\/schemas\/Account_ChangePassword"
      },
      "Collection": {
        "type": "object",
        "properties": {
          "totalResults": {
            "type": "integer"
          },
          "startIndex": {
            "type": "integer"
          },
          "entry": {
            "type": "array",
            "items": {
              "$generic": "T"
            }
          }
        }
      },
      "Consumer_App": {
        "$ref": "#\/components\/schemas\/App"
      },
      "Consumer_App_Collection": {
        "$ref": "#\/components\/schemas\/App_Collection"
      },
      "Consumer_App_Create": {
        "$ref": "#\/components\/schemas\/App_Create"
      },
      "Consumer_App_Update": {
        "$ref": "#\/components\/schemas\/App_Update"
      },
      "Consumer_Authorize_Meta": {
        "$ref": "#\/components\/schemas\/Authorize_Meta"
      },
      "Consumer_Authorize_Request": {
        "$ref": "#\/components\/schemas\/Authorize_Request"
      },
      "Consumer_Authorize_Response": {
        "$ref": "#\/components\/schemas\/Authorize_Response"
      },
      "Consumer_Event_Collection": {
        "$ref": "#\/components\/schemas\/Event_Collection"
      },
      "Consumer_Event_Subscription": {
        "$ref": "#\/components\/schemas\/Event_Subscription"
      },
      "Consumer_Event_Subscription_Collection": {
        "$ref": "#\/components\/schemas\/Event_Subscription_Collection"
      },
      "Consumer_Event_Subscription_Create": {
        "$ref": "#\/components\/schemas\/Event_Subscription_Create"
      },
      "Consumer_Event_Subscription_Update": {
        "$ref": "#\/components\/schemas\/Event_Subscription_Update"
      },
      "Consumer_Grant_Collection": {
        "$ref": "#\/components\/schemas\/Grant_Collection"
      },
      "Consumer_Log": {
        "$ref": "#\/components\/schemas\/Log"
      },
      "Consumer_Log_Collection": {
        "$ref": "#\/components\/schemas\/Log_Collection"
      },
      "Consumer_Page": {
        "$ref": "#\/components\/schemas\/Page"
      },
      "Consumer_Page_Collection": {
        "$ref": "#\/components\/schemas\/Page_Collection"
      },
      "Consumer_Payment_Checkout_Request": {
        "$ref": "#\/components\/schemas\/Payment_Checkout_Request"
      },
      "Consumer_Payment_Checkout_Response": {
        "$ref": "#\/components\/schemas\/Payment_Checkout_Response"
      },
      "Consumer_Payment_Portal_Response": {
        "$ref": "#\/components\/schemas\/Payment_Portal_Response"
      },
      "Consumer_Plan": {
        "$ref": "#\/components\/schemas\/Plan"
      },
      "Consumer_Plan_Collection": {
        "$ref": "#\/components\/schemas\/Plan_Collection"
      },
      "Consumer_Scope_Collection": {
        "$ref": "#\/components\/schemas\/Scope_Collection"
      },
      "Consumer_Transaction": {
        "$ref": "#\/components\/schemas\/Transaction"
      },
      "Consumer_Transaction_Collection": {
        "$ref": "#\/components\/schemas\/Transaction_Collection"
      },
      "Consumer_User_Account": {
        "$ref": "#\/components\/schemas\/User_Account"
      },
      "Consumer_User_Activate": {
        "$ref": "#\/components\/schemas\/User_Activate"
      },
      "Consumer_User_Email": {
        "$ref": "#\/components\/schemas\/User_Email"
      },
      "Consumer_User_JWT": {
        "$ref": "#\/components\/schemas\/User_JWT"
      },
      "Consumer_User_Login": {
        "$ref": "#\/components\/schemas\/User_Login"
      },
      "Consumer_User_PasswordReset": {
        "$ref": "#\/components\/schemas\/User_PasswordReset"
      },
      "Consumer_User_Provider": {
        "$ref": "#\/components\/schemas\/User_Provider"
      },
      "Consumer_User_Refresh": {
        "$ref": "#\/components\/schemas\/User_Refresh"
      },
      "Consumer_User_Register": {
        "$ref": "#\/components\/schemas\/User_Register"
      },
      "Event": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      },
      "Event_Collection": {
        "$ref": "#\/components\/schemas\/Collection"
      },
      "Event_Subscription": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "status": {
            "type": "integer"
          },
          "event": {
            "type": "string"
          },
          "endpoint": {
            "type": "string"
          },
          "responses": {
            "type": "array",
            "items": {
              "$ref": "#\/components\/schemas\/Event_Subscription_Response"
            }
          }
        }
      },
      "Event_Subscription_Collection": {
        "$ref": "#\/components\/schemas\/Collection"
      },
      "Event_Subscription_Create": {
        "type": "object",
        "properties": {
          "event": {
            "type": "string"
          },
          "endpoint": {
            "type": "string"
          }
        },
        "required": [
          "event",
          "endpoint"
        ]
      },
      "Event_Subscription_Response": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer"
          },
          "code": {
            "type": "integer"
          },
          "attempts": {
            "type": "string"
          },
          "executeDate": {
            "type": "string"
          }
        }
      },
      "Event_Subscription_Update": {
        "type": "object",
        "properties": {
          "event": {
            "type": "string"
          },
          "endpoint": {
            "type": "string"
          }
        },
        "required": [
          "event",
          "endpoint"
        ]
      },
      "Grant": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "app": {
            "$ref": "#\/components\/schemas\/App"
          },
          "createDate": {
            "format": "date-time",
            "type": "string"
          }
        }
      },
      "Grant_Collection": {
        "$ref": "#\/components\/schemas\/Collection"
      },
      "Log": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "appId": {
            "type": "integer"
          },
          "ip": {
            "type": "string"
          },
          "userAgent": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "header": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "date": {
            "format": "date-time",
            "type": "string"
          }
        }
      },
      "Log_Collection": {
        "$ref": "#\/components\/schemas\/Collection"
      },
      "Message": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "Page": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        }
      },
      "Page_Collection": {
        "$ref": "#\/components\/schemas\/Collection"
      },
      "Payment_Checkout_Request": {
        "type": "object",
        "properties": {
          "planId": {
            "type": "integer"
          },
          "returnUrl": {
            "type": "string"
          }
        }
      },
      "Payment_Checkout_Response": {
        "type": "object",
        "properties": {
          "approvalUrl": {
            "type": "string"
          }
        }
      },
      "Payment_Portal_Response": {
        "type": "object",
        "properties": {
          "redirectUrl": {
            "type": "string"
          }
        }
      },
      "Plan": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "points": {
            "type": "integer"
          }
        }
      },
      "Plan_Collection": {
        "$ref": "#\/components\/schemas\/Collection"
      },
      "Scope": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string",
            "pattern": "^[A-z0-9\\-\\_]{3,64}$"
          },
          "description": {
            "type": "string"
          }
        }
      },
      "Scope_Collection": {
        "$ref": "#\/components\/schemas\/Collection"
      },
      "Transaction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "status": {
            "type": "integer"
          },
          "transactionId": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          },
          "updateDate": {
            "type": "integer"
          },
          "insertDate": {
            "type": "integer"
          }
        }
      },
      "Transaction_Collection": {
        "$ref": "#\/components\/schemas\/Collection"
      },
      "User_Account": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "planId": {
            "type": "integer"
          },
          "status": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "points": {
            "type": "integer"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "attributes": {
            "$ref": "#\/components\/schemas\/User_Attributes"
          },
          "date": {
            "format": "date-time",
            "type": "string"
          }
        }
      },
      "User_Activate": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          }
        },
        "required": [
          "token"
        ]
      },
      "User_Attributes": {
        "type": "object",
        "additionalProperties": {
          "type": "string"
        }
      },
      "User_Email": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "captcha": {
            "type": "string"
          }
        },
        "required": [
          "email"
        ]
      },
      "User_JWT": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          },
          "expires_in": {
            "type": "string"
          },
          "refresh_token": {
            "type": "string"
          }
        }
      },
      "User_Login": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "User_PasswordReset": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          },
          "newPassword": {
            "type": "string"
          }
        },
        "required": [
          "token",
          "newPassword"
        ]
      },
      "User_Provider": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "clientId": {
            "type": "string"
          },
          "redirectUri": {
            "type": "string"
          }
        }
      },
      "User_Refresh": {
        "type": "object",
        "properties": {
          "refresh_token": {
            "type": "string"
          }
        }
      },
      "User_Register": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "captcha": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "email",
          "password"
        ]
      }
    },
    "securitySchemes": {
      "app": {
        "type": "oauth2",
        "flows": {
          "password": {
            "tokenUrl": "http:\/\/127.0.0.1\/authorization\/token",
            "refreshUrl": "http:\/\/127.0.0.1\/authorization\/token",
            "scopes": {
              "consumer": "",
              "consumer.app": "",
              "consumer.event": "",
              "consumer.grant": "",
              "consumer.log": "",
              "consumer.page": "",
              "consumer.payment": "",
              "consumer.plan": "",
              "consumer.scope": "",
              "consumer.subscription": "",
              "consumer.transaction": "",
              "consumer.user": ""
            }
          },
          "clientCredentials": {
            "tokenUrl": "http:\/\/127.0.0.1\/authorization\/token",
            "refreshUrl": "http:\/\/127.0.0.1\/authorization\/token",
            "scopes": {
              "consumer": "",
              "consumer.app": "",
              "consumer.event": "",
              "consumer.grant": "",
              "consumer.log": "",
              "consumer.page": "",
              "consumer.payment": "",
              "consumer.plan": "",
              "consumer.scope": "",
              "consumer.subscription": "",
              "consumer.transaction": "",
              "consumer.user": ""
            }
          },
          "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": {
              "consumer": "",
              "consumer.app": "",
              "consumer.event": "",
              "consumer.grant": "",
              "consumer.log": "",
              "consumer.page": "",
              "consumer.payment": "",
              "consumer.plan": "",
              "consumer.scope": "",
              "consumer.subscription": "",
              "consumer.transaction": "",
              "consumer.user": ""
            }
          }
        }
      }
    }
  }
}