{
  "/users": {
    "get": {
      "summary": "Gets all Users",
      "tags": [
        "users"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_users",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of Users",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/users"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/users/own": {
    "get": {
      "summary": "Gets the User object of the requester",
      "tags": [
        "users"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_users_own",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "A users",
          "schema": {
            "$ref": "#/definitions/users"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/users/search": {
    "get": {
      "summary": "Gets all Users by search",
      "tags": [
        "users"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_users_search",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "key",
          "in": "query",
          "description": "Key to search by",
          "required": true,
          "type": "string"
        },
        {
          "name": "value",
          "in": "query",
          "description": "Value to search for",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of Users",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/users"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/users/{id}": {
    "get": {
      "summary": "Gets all Users",
      "tags": [
        "users"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_users_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "User id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A users",
          "schema": {
            "$ref": "#/definitions/users"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Updates a User",
      "tags": [
        "users"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "put_users_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "User id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "user",
          "in": "body",
          "description": "user to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/users"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of Users",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/users"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "delete": {
      "summary": "Deletes a User",
      "tags": [
        "users"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "delete_users_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "User id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A users",
          "schema": {
            "$ref": "#/definitions/users"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/users/{id}/avatar": {
    "get": {
      "summary": "Gets User Avatar",
      "tags": [
        "users"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_users_id_avatar",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "user id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "User Avatar",
          "type": "file"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Adds a User Avatar",
      "tags": [
        "users"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "put_users_id_avatar",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "user id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "avatar",
          "in": "body",
          "description": "user icon to add",
          "required": true,
          "type": "file"
        }
      ],
      "responses": {
        "200": {
          "description": "file",
          "schema": {
            "$ref": "#/definitions/files"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/users/register": {
    "post": {
      "summary": "Registers a new User",
      "tags": [
        "users"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "post_users_register",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "user",
          "in": "body",
          "description": "user to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/users"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of Users",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/users"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/users/{id}/suspend": {
    "post": {
      "summary": "Suspend the User",
      "tags": [
        "users"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "post_users_id_suspend",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "user to suspend",
          "required": true,
          "type": "number"
        }
      ],
      "responses": {
        "200": {
          "description": "A user",
          "schema": {
            "$ref": "#/definitions/users"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/users/invite": {
    "post": {
      "summary": "Invites a new User",
      "tags": [
        "users"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "post_users_invite",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "email",
          "in": "body",
          "description": "user to create",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "Invitation URL",
          "type": "string"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/funds": {
    "get": {
      "summary": "Gets all funds",
      "tags": [
        "funds"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_funds",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of funds",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/funds"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "post": {
      "summary": "Create new fund",
      "tags": [
        "funds"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "post_funds",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "fund",
          "in": "body",
          "description": "fund to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/funds"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of funds",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/funds"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/funds/own": {
    "get": {
      "summary": "Gets users own funds",
      "tags": [
        "funds"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_funds_own",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of funds",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/funds"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/funds/search": {
    "get": {
      "summary": "Gets all funds by search",
      "tags": [
        "funds"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_funds_search",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "key",
          "in": "query",
          "description": "Key to search by",
          "required": true,
          "type": "string"
        },
        {
          "name": "value",
          "in": "query",
          "description": "Value to search for",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of funds",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/funds"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/funds/{id}": {
    "get": {
      "summary": "Gets fund",
      "tags": [
        "funds"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "get_funds_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "fund id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A fund",
          "schema": {
            "$ref": "#/definitions/funds"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Updates a fund",
      "tags": [
        "funds"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "put_funds_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "fund id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "fund",
          "in": "body",
          "description": "fund to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/funds"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of funds",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/funds"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/roles": {
    "get": {
      "summary": "Gets all roles",
      "tags": [
        "roles"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "get_roles",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of roles",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/user_roles"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "post": {
      "summary": "Create new role",
      "tags": [
        "roles"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "post_roles",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "role",
          "in": "body",
          "description": "role to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/user_roles"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of roles",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/user_roles"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/roles/search": {
    "get": {
      "summary": "Gets all roles by search",
      "tags": [
        "roles"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "get_roles_search",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "key",
          "in": "query",
          "description": "Key to search by",
          "required": true,
          "type": "string"
        },
        {
          "name": "value",
          "in": "query",
          "description": "Value to search for",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of roles",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/user_roles"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/roles/{id}": {
    "get": {
      "summary": "Gets all roles",
      "tags": [
        "roles"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "get_roles_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "role id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A roles",
          "schema": {
            "$ref": "#/definitions/user_roles"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Updates a role",
      "tags": [
        "roles"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "put_roles_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "role id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "role",
          "in": "body",
          "description": "role to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/user_roles"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of roles",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/user_roles"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "delete": {
      "summary": "Deletes a role",
      "tags": [
        "roles"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "delete_roles_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "role id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A roles",
          "schema": {
            "$ref": "#/definitions/user_roles"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/roles/manage-permissions": {
    "get": {
      "summary": "Gets all roles with permissions",
      "tags": [
        "roles"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "get_roles_manage_permissions",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of roles",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/roles_permissions"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "post": {
      "summary": "Update role with permission",
      "tags": [
        "roles"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "post_roles_manage_permissions",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "role",
          "in": "body",
          "description": "roles and permissions to update",
          "required": true,
          "schema": {
            "$ref": "#/definitions/roles_permissions"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of roles",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/roles_permissions"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-templates": {
    "get": {
      "summary": "Gets all service-templates",
      "tags": [
        "service-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_service_templates",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-templates",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_templates"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "post": {
      "summary": "Create new service-template",
      "tags": [
        "service-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "post_service_templates",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "service_templates",
          "in": "body",
          "description": "service-template to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/service_templates"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-templates",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_templates"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-templates/public": {
    "get": {
      "summary": "Gets all public service-templates",
      "tags": [
        "service-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_service_templates_public",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-templates",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_templates"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-templates/search": {
    "get": {
      "summary": "Gets all service-templates by search",
      "tags": [
        "service-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_service_templates_search",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "key",
          "in": "query",
          "description": "Key to search by",
          "required": true,
          "type": "string"
        },
        {
          "name": "value",
          "in": "query",
          "description": "Value to search for",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-templates",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_templates"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-templates/{id}": {
    "get": {
      "summary": "Gets all service-templates",
      "tags": [
        "service-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_service_templates_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-template id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-templates",
          "schema": {
            "$ref": "#/definitions/service_templates"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Updates a service_templates",
      "tags": [
        "service-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "put_service_templates_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-template id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "service_templates",
          "in": "body",
          "description": "service-templates to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/service_templates"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-templates",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_templates"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "delete": {
      "summary": "Deletes a service-template",
      "tags": [
        "service-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "delete_service_templates_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-template id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-templates",
          "schema": {
            "$ref": "#/definitions/service_templates"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-templates/{id}/icon": {
    "get": {
      "summary": "Gets Service Template Icon",
      "tags": [
        "service-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_service_templates_id_icon",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-template id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "service-template File",
          "type": "file"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Adds a Service Template Icon",
      "tags": [
        "service-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "put_service_templates_id_icon",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-template id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "template-icon",
          "in": "body",
          "description": "service-template icon to add",
          "required": true,
          "type": "file"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of System Options",
          "schema": {
            "$ref": "#/definitions/files"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-templates/{id}/image": {
    "get": {
      "summary": "Gets Service Template Image",
      "tags": [
        "service-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_service_templates_id_image",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-template id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "service-template File",
          "type": "file"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Adds a Service Template Image",
      "tags": [
        "service-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "put_service_templates_id_image",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-template id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "template-image",
          "in": "body",
          "description": "service-template image to add",
          "required": true,
          "type": "file"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of System Options",
          "schema": {
            "$ref": "#/definitions/files"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-templates/{id}/request": {
    "get": {
      "summary": "Gets a service-template Request",
      "tags": [
        "service-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_service_templates_id_request",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-templates id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-template request",
          "type": "object"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "post": {
      "summary": "Requests a service-instance",
      "tags": [
        "service-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "put_service_templates_id_request",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-templates id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "request",
          "in": "body",
          "description": "service-template request information",
          "required": true,
          "type": "object"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-templates",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instances"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-categories": {
    "get": {
      "summary": "Gets all service-categories",
      "tags": [
        "service-categories"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_service_categories",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-categories",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_categories"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "post": {
      "summary": "Create new service-category",
      "tags": [
        "service-categories"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "post_service_categories",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "service-category",
          "in": "body",
          "description": "service-category to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/service_categories"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-categories",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_categories"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-categories/search": {
    "get": {
      "summary": "Gets all service-categories by search",
      "tags": [
        "service-categories"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_service_categories_search",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "key",
          "in": "query",
          "description": "Key to search by",
          "required": true,
          "type": "string"
        },
        {
          "name": "value",
          "in": "query",
          "description": "Value to search for",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-categories",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_categories"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-categories/{id}": {
    "get": {
      "summary": "Gets all service-categories",
      "tags": [
        "service-categories"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_service_categories_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-category id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-categories",
          "schema": {
            "$ref": "#/definitions/service_categories"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Updates a service-category",
      "tags": [
        "service-categories"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "put_service_categories_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-category id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "service-category",
          "in": "body",
          "description": "service-category to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/service_categories"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-categories",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_categories"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "delete": {
      "summary": "Deletes a service-category",
      "tags": [
        "service-categories"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "delete_service_categories_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-category id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-categories",
          "schema": {
            "$ref": "#/definitions/service_categories"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-template-properties": {
    "get": {
      "summary": "Gets all service-template-properties",
      "tags": [
        "service-template-properties"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_service_template_properties",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-template-properties",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_template_properties"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "post": {
      "summary": "Create new service-template-property",
      "tags": [
        "service-template-properties"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "post_service_template_properties",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "service-template-property",
          "in": "body",
          "description": "service-template-property to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/service_template_properties"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-template-properties",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_template_properties"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-template-properties/search": {
    "get": {
      "summary": "Gets all service-template-properties by search",
      "tags": [
        "service-template-properties"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_service_template_properties_search",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "key",
          "in": "query",
          "description": "Key to search by",
          "required": true,
          "type": "string"
        },
        {
          "name": "value",
          "in": "query",
          "description": "Value to search for",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-template-properties",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_template_properties"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-template-properties/{id}": {
    "get": {
      "summary": "Gets all service-template-properties",
      "tags": [
        "service-template-properties"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_service_template_properties_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-template-property id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-template-properties",
          "schema": {
            "$ref": "#/definitions/service_template_properties"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Updates a service-template-property",
      "tags": [
        "service-template-properties"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "put_service_template_properties_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-template-property id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "service-template-property",
          "in": "body",
          "description": "service-template-property to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/service_template_properties"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-template-properties",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_template_properties"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "delete": {
      "summary": "Deletes a service-template-property",
      "tags": [
        "service-template-properties"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "delete_service_template_properties_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-template-property id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-template-properties",
          "schema": {
            "$ref": "#/definitions/service_template_properties"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instances": {
    "get": {
      "summary": "Gets all service-instances",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_service_instances",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-instances",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instances"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instances/own": {
    "get": {
      "summary": "Gets all service-instances owned by user",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_service_instances_own",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-instances",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instances"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instances/search": {
    "get": {
      "summary": "Gets all service-instances by search",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_service_instances_search",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "key",
          "in": "query",
          "description": "Key to search by",
          "required": true,
          "type": "string"
        },
        {
          "name": "value",
          "in": "query",
          "description": "Value to search for",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-instances",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instances"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instances/{id}": {
    "get": {
      "summary": "Get a service-instance by id",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_service_instances_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-instance",
          "schema": {
            "$ref": "#/definitions/service_instances"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Updates a service-instance",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "put_service_instances_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service_instances id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "service_instances",
          "in": "body",
          "description": "service-instance to update",
          "required": true,
          "schema": {
            "$ref": "#/definitions/service_instances"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "Updated service-instance",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instances"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "delete": {
      "summary": "Deletes a service-instance",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "delete_service_instances_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-instance",
          "schema": {
            "$ref": "#/definitions/service_instances"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instances/{id}/approve": {
    "post": {
      "summary": "Approves a service-instance",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "post_service_instances_id_approve",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-instance",
          "schema": {
            "$ref": "#/definitions/service_instances"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instances/{id}/change-price": {
    "post": {
      "summary": "Approves a service-instance",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "post_service_instances_id_change_price",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "statement_descriptor",
          "in": "body",
          "description": "statement descriptor",
          "required": false,
          "type": "string"
        },
        {
          "name": "amount",
          "in": "body",
          "description": "Amount",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "currency",
          "in": "body",
          "description": "Currency Type",
          "required": false,
          "type": "string"
        },
        {
          "name": "interval",
          "in": "body",
          "description": "Interval",
          "required": false,
          "type": "string"
        },
        {
          "name": "interval_count",
          "in": "body",
          "description": "Interval Count",
          "required": false,
          "type": "number",
          "format": "double"
        },
        {
          "name": "subscription_prorate",
          "in": "body",
          "description": "Subscription Prorate",
          "required": false,
          "type": "boolean"
        },
        {
          "name": "trial_period_days",
          "in": "body",
          "description": "Trial Period Days",
          "required": false,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-instance",
          "schema": {
            "$ref": "#/definitions/service_instances"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instances/{id}/cancel": {
    "post": {
      "summary": "Cancel a service-instance",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "post_service_instances_id_cancel",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-instance",
          "schema": {
            "$ref": "#/definitions/service_instances"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instances/{id}/request-cancellation": {
    "post": {
      "summary": "Request Cancellation of a service-instance",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "post_service_instances_id_request_cancellation",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-instance-cancellation",
          "schema": {
            "$ref": "#/definitions/service_instance_cancellations"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instances/{id}/add-charge": {
    "post": {
      "summary": "Add a charge to a service-instance",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "post_service_instances_id_add_charge",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A charge-item",
          "schema": {
            "$ref": "#/definitions/charge_items"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instances/{id}/awaiting-charges": {
    "get": {
      "summary": "Get service-instance awaiting charges",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_service_instances_id_awaiting_charges",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "Service Instance Charge Items",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/charge_items"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instances/{id}/approve-charges": {
    "post": {
      "summary": "Approve a service-instance charges",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "post_service_instances_id_approve_charges",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-instance",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/charge_items"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instances/{id}/files": {
    "post": {
      "summary": "Add a service-instance Files",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "post_service_instances_id_files",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "files",
          "in": "body",
          "description": "service-instance files",
          "required": true,
          "type": "array",
          "items": {
            "type": "file"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "Files",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/files"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "get": {
      "summary": "Get service-instance files",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_service_instances_id_files",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "Service Instance Charge Items",
          "schema": {
            "type": "array",
            "items": {
              "type": "file"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instances/{id}/files/{fid}": {
    "delete": {
      "summary": "Add a service-instance Files",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "delete_service_instances_id_files_fid",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "fid",
          "in": "path",
          "description": "service-instance file id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "Message",
          "type": "string"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "get": {
      "summary": "Get service-instance files",
      "tags": [
        "service-instances"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_service_instances_id_files_fid",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "fid",
          "in": "path",
          "description": "service-instance file id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "Service Instance File",
          "type": "file"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instance-properties": {
    "get": {
      "summary": "Gets all service-instance-properties",
      "tags": [
        "service-instance-properties"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_service_instance_properties",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-instance-properties",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instance_properties"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "post": {
      "summary": "Create newservice-instance-properties",
      "tags": [
        "service-instance-properties"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "post_service_instance_properties",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "service_instance_properties",
          "in": "body",
          "description": "service_instance_properties to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/service_instance_properties"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-instance-properties",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instance_properties"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instance-properties/search": {
    "get": {
      "summary": "Gets all service-instance-properties by search",
      "tags": [
        "service-instance-properties"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_service_instance_properties_search",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "key",
          "in": "query",
          "description": "Key to search by",
          "required": true,
          "type": "string"
        },
        {
          "name": "value",
          "in": "query",
          "description": "Value to search for",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-instance-properties",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instance_properties"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instance-properties/{id}": {
    "get": {
      "summary": "Gets all service-instance-properties",
      "tags": [
        "service-instance-properties"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_service_instance_properties_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service_instance_properties id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-instance-properties",
          "schema": {
            "$ref": "#/definitions/service_instance_properties"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Updates aservice-instance-properties",
      "tags": [
        "service-instance-properties"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "put_service_instance_properties_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service_instance_properties id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "service_instance_properties",
          "in": "body",
          "description": "service_instance_properties to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/service_instance_properties"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-instance-properties",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instance_properties"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "delete": {
      "summary": "Deletes aservice-instance-properties",
      "tags": [
        "service-instance-properties"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "delete_service_instance_properties_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service_instance_properties id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-instance-properties",
          "schema": {
            "$ref": "#/definitions/service_instance_properties"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instance-messages": {
    "get": {
      "summary": "Gets all service-instance-messages",
      "tags": [
        "service-instance-messages"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_service_instance_messages",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-instance-messages",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instance_messages"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "post": {
      "summary": "Create newservice-instance-messages",
      "tags": [
        "service-instance-messages"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "post_service_instance_messages",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "service_instance_messages",
          "in": "body",
          "description": "service_instance_messages to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/service_instance_messages"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-instance-messages",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instance_messages"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instance-messages/search": {
    "get": {
      "summary": "Gets all service-instance-messages by search",
      "tags": [
        "service-instance-messages"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_service_instance_messages_search",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "key",
          "in": "query",
          "description": "Key to search by",
          "required": true,
          "type": "string"
        },
        {
          "name": "value",
          "in": "query",
          "description": "Value to search for",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-instance-messages",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instance_messages"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instance-messages/{id}": {
    "get": {
      "summary": "Gets all service-instance-messages",
      "tags": [
        "service-instance-messages"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_service_instance_messages_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service_instance_messages id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-instance-messages",
          "schema": {
            "$ref": "#/definitions/service_instance_messages"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Updates aservice-instance-messages",
      "tags": [
        "service-instance-messages"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "put_service_instance_messages_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service_instance_messages id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "service_instance_messages",
          "in": "body",
          "description": "service_instance_messages to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/service_instance_messages"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-instance-messages",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instance_messages"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "delete": {
      "summary": "Deletes aservice-instance-messages",
      "tags": [
        "service-instance-messages"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "delete_service_instance_messages_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service_instance_messages id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-instance-messages",
          "schema": {
            "$ref": "#/definitions/service_instance_messages"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instance-cancellations": {
    "get": {
      "summary": "Gets all service-instance-cancellations",
      "tags": [
        "service-instance-cancellations"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_service_instance_cancellations",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-instance-cancellations",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instance_cancellations"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "post": {
      "summary": "Create new service-instance-cancellations",
      "tags": [
        "service-instance-cancellations"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "post_service_instance_cancellations",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "service_instance_cancellations",
          "in": "body",
          "description": "service-instance-cancellations to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/service_instance_cancellations"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-instance-cancellations",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instance_cancellations"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instance-cancellations/own": {
    "get": {
      "summary": "Gets all service-instance-cancellations owned by user",
      "tags": [
        "service-instance-cancellations"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_service_instance_cancellations_own",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-instance-cancellations",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instance_cancellations"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instance-cancellations/search": {
    "get": {
      "summary": "Gets all service-instance-cancellations by search",
      "tags": [
        "service-instance-cancellations"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_service_instance_cancellations_search",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "key",
          "in": "query",
          "description": "Key to search by",
          "required": true,
          "type": "string"
        },
        {
          "name": "value",
          "in": "query",
          "description": "Value to search for",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-instance-cancellations",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instance_cancellations"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instance-cancellations/{id}": {
    "get": {
      "summary": "Gets all service-instance-cancellations",
      "tags": [
        "service-instance-cancellations"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_service_instance_cancellations_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance-cancellation id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-instance-cancellations",
          "schema": {
            "$ref": "#/definitions/service_instance_cancellations"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Updates a service-instance-cancellation",
      "tags": [
        "service-instance-cancellations"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "put_service_instance_cancellations_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance-cancellations id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "service_instance_cancellations",
          "in": "body",
          "description": "service-instance-cancellations to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/service_instance_cancellations"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of service-instance-cancellations",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_instance_cancellations"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "delete": {
      "summary": "Deletes a service-instance-cancellation",
      "tags": [
        "service-instance-cancellations"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "delete_service_instance_cancellations_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance-cancellations id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A service-instance-cancellations",
          "schema": {
            "$ref": "#/definitions/service_instance_cancellations"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instance-cancellations/{id}/approve": {
    "post": {
      "summary": "Approves a service-instance-cancellations",
      "tags": [
        "service-instance-cancellations"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "post_service_instance_cancellations_id_approve",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance-cancellations id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "Canceled Instance",
          "schema": {
            "$ref": "#/definitions/service_instance_cancellations"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instance-cancellations/{id}/reject": {
    "post": {
      "summary": "Rejects a service-instance-cancellations",
      "tags": [
        "service-instance-cancellations"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "post_service_instance_cancellations_id_reject",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance-cancellations id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "Updated Instance",
          "schema": {
            "$ref": "#/definitions/service_instance_cancellations"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/service-instance-cancellations/{id}/undo": {
    "post": {
      "summary": "Rejects a service-instance-cancellations for the user who created it",
      "tags": [
        "service-instance-cancellations"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "post_service_instance_cancellations_id_undo",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "service-instance-cancellations id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "Updated Instance",
          "schema": {
            "$ref": "#/definitions/service_instance_cancellations"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/event-logs": {
    "get": {
      "summary": "Gets all Event Logs",
      "tags": [
        "event-logs"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "get_event_logs",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of Event Logs",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/event_logs"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "post": {
      "summary": "Create new Event Log",
      "tags": [
        "event-logs"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "post_event_logs",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "Event Log",
          "in": "body",
          "description": "Event Log to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/event_logs"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of Event Logs",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/event_logs"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/event-logs/search": {
    "get": {
      "summary": "Gets all Event Logs by search",
      "tags": [
        "event-logs"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "get_event_logs_search",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "key",
          "in": "query",
          "description": "Key to search by",
          "required": true,
          "type": "string"
        },
        {
          "name": "value",
          "in": "query",
          "description": "Value to search for",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of Event Logs",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/event_logs"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/event-logs/{id}": {
    "get": {
      "summary": "Gets all Event Logs",
      "tags": [
        "event-logs"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "get_event_logs_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "Event Log id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A Event Logs",
          "schema": {
            "$ref": "#/definitions/event_logs"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Updates a Event Log",
      "tags": [
        "event-logs"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "put_event_logs_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "Event Log id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "Event Log",
          "in": "body",
          "description": "Event Log to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/event_logs"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of Event Logs",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/event_logs"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "delete": {
      "summary": "Deletes a Event Log",
      "tags": [
        "event-logs"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "delete_event_logs_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "Event Log id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A Event Logs",
          "schema": {
            "$ref": "#/definitions/event_logs"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/email-templates": {
    "get": {
      "summary": "Gets all Email Templates",
      "tags": [
        "email-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_email_templates",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of Email Templates",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/email_templates"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "post": {
      "summary": "Create new Email Template",
      "tags": [
        "email-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "post_email_templates",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "Email Template",
          "in": "body",
          "description": "Email Template to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/email_templates"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of Email Templates",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/email_templates"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/email-templates/search": {
    "get": {
      "summary": "Gets all Email Templates by search",
      "tags": [
        "email-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_email_templates_search",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "key",
          "in": "query",
          "description": "Key to search by",
          "required": true,
          "type": "string"
        },
        {
          "name": "value",
          "in": "query",
          "description": "Value to search for",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of Email Templates",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/email_templates"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/email-templates/{id}": {
    "get": {
      "summary": "Gets all Email Templates",
      "tags": [
        "email-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_email_templates_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "Email Template id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A Email Templates",
          "schema": {
            "$ref": "#/definitions/email_templates"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Updates a Email Template",
      "tags": [
        "email-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "put_email_templates_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "Email Template id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "Email Template",
          "in": "body",
          "description": "Email Template to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/email_templates"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of Email Templates",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/email_templates"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "delete": {
      "summary": "Deletes a Email Template",
      "tags": [
        "email-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "delete_email_templates_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "Email Template id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A Email Templates",
          "schema": {
            "$ref": "#/definitions/email_templates"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/email-templates/{id}/roles": {
    "get": {
      "summary": "Gets Email Template Roles",
      "tags": [
        "email-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "get_email_templates_id_roles",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "Email Template id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "Template to Roles",
          "type": "object"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Updates an Email Template Role",
      "tags": [
        "email-templates"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "put_email_templates_id_roles",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "Email Template id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "Email-Template-To-Role",
          "in": "body",
          "description": "Email Template to Role",
          "required": true,
          "type": "object"
        }
      ],
      "responses": {
        "200": {
          "description": "Template to Roles",
          "type": "object"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/invoices": {
    "get": {
      "summary": "Gets all Invoices",
      "tags": [
        "invoices"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_invoices",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of Invoices",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/invoices"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/invoices/own": {
    "get": {
      "summary": "Gets all Invoices owned by user",
      "tags": [
        "invoices"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_invoices_own",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of Invoices",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/invoices"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/invoices/search": {
    "get": {
      "summary": "Gets all Invoices by search",
      "tags": [
        "invoices"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_invoices_search",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "key",
          "in": "query",
          "description": "Key to search by",
          "required": true,
          "type": "string"
        },
        {
          "name": "value",
          "in": "query",
          "description": "Value to search for",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of Invoices",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/invoices"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/invoices/{id}": {
    "get": {
      "summary": "Gets all Invoices",
      "tags": [
        "invoices"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_invoices_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "Invoice id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A Invoices",
          "schema": {
            "$ref": "#/definitions/invoices"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/invoices/upcoming/{id}": {
    "get": {
      "summary": "Gets upcoming Invoices",
      "tags": [
        "invoices"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_invoices_upcoming_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "User id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A Invoices",
          "schema": {
            "$ref": "#/definitions/invoices"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/invoices/{id}/refund": {
    "post": {
      "summary": "Performs refund on Invoice",
      "tags": [
        "invoices"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "post_invoices_id_refund",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "Invoice id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "amount",
          "in": "body",
          "description": "Refund Amount",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "reason",
          "in": "body",
          "description": "Refund reason",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "The transaction",
          "schema": {
            "$ref": "#/definitions/transactions"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/system-options": {
    "get": {
      "summary": "Gets all System Options",
      "tags": [
        "system-options"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "get_system_options",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of System Options",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/system_options"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Batch Updates System Options",
      "tags": [
        "system-options"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "put_system_options",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "System Options",
          "in": "body",
          "description": "An array of System Options to create",
          "required": true,
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/system_options"
            }
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of System Options",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/system_options"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/system-options/public": {
    "get": {
      "summary": "Gets all public System Options",
      "tags": [
        "system-options"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_system_options_public",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of System Options",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/system_options"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/system-options/{id}": {
    "get": {
      "summary": "Gets a System Option",
      "tags": [
        "system-options"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "get_system_options_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "System Option id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A System Options",
          "schema": {
            "$ref": "#/definitions/system_options"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Updates a System Option",
      "tags": [
        "system-options"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "put_system_options_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "System Option id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "System Option",
          "in": "body",
          "description": "System Option to create",
          "required": true,
          "schema": {
            "$ref": "#/definitions/system_options"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "An array of System Options",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/system_options"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/system-options/file/{id}": {
    "get": {
      "summary": "Gets a System File Options. Ids are 'front_page_image', 'brand_logo'",
      "tags": [
        "system-options"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_system_options_file_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "System Option id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A System Options",
          "type": "file"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "put": {
      "summary": "Updates a System Option. Ids are 'front_page_image', 'brand_logo'",
      "tags": [
        "system-options"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "put_system_options_file_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "System Option id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "file",
          "in": "body",
          "description": "System Option to create",
          "required": true,
          "type": "file"
        }
      ],
      "responses": {
        "200": {
          "description": "An array of System Options",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/files"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/charge/{id}/approve": {
    "post": {
      "summary": "Approves a Charge Item",
      "tags": [
        "charge"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "post_charge_id_approve",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "charge-item id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A charge-item",
          "schema": {
            "$ref": "#/definitions/charge_items"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/charge/{id}/cancel": {
    "post": {
      "summary": "Cancels a Charge Item",
      "tags": [
        "charge"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "post_charge_id_cancel",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "charge-item id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "A charge-item",
          "schema": {
            "$ref": "#/definitions/charge_items"
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/auth/token": {
    "post": {
      "summary": "Gets a Authorization Token",
      "tags": [
        "auth"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "post_auth_token",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "User Login",
          "in": "body",
          "description": "User Login Information",
          "required": true,
          "schema": {
            "$ref": "#/definitions/user_login"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "Authorization Token",
          "type": "string"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/auth/session/clear": {
    "post": {
      "summary": "Clears session",
      "tags": [
        "auth"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "post_auth_session_clear",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "Message",
          "type": "string"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/auth/reset-password": {
    "post": {
      "summary": "Send Reset password email",
      "tags": [
        "auth"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "post_auth_reset_password",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "email",
          "in": "body",
          "description": "user email",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "Message",
          "type": "string"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/auth/reset-password/{uid}/{token}": {
    "get": {
      "summary": "Get User password reset token",
      "tags": [
        "auth"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "get_auth_reset_password_uid_token",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "uid",
          "in": "path",
          "description": "user id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "token",
          "in": "path",
          "description": "token",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "response message",
          "type": "string"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    },
    "post": {
      "summary": "Reset user password",
      "tags": [
        "auth"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff",
        "user"
      ],
      "operationId": "post_auth_reset_password_uid_token",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "uid",
          "in": "path",
          "description": "user id",
          "required": true,
          "type": "number",
          "format": "double"
        },
        {
          "name": "token",
          "in": "path",
          "description": "token",
          "required": true,
          "type": "string"
        },
        {
          "name": "password",
          "in": "path",
          "description": "new password",
          "required": true,
          "type": "string"
        }
      ],
      "responses": {
        "200": {
          "description": "response message",
          "type": "string"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/analytics/data": {
    "get": {
      "summary": "Gets Analytics Data",
      "description": "Gets Analytics Data from instance",
      "tags": [
        "analytics"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_analytics_data",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "Analytics Data",
          "type": "object"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/analytics/properties/{id}": {
    "get": {
      "summary": "Gets all instance properties based on template id",
      "tags": [
        "analytics"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin",
        "staff"
      ],
      "operationId": "get_analytics_properties_id",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "Service Template id",
          "required": true,
          "type": "number",
          "format": "double"
        }
      ],
      "responses": {
        "200": {
          "description": "Instance properties",
          "type": "object"
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/permissions": {
    "get": {
      "summary": "Gets all permissions",
      "tags": [
        "permissions"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "get_permissions",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "An array of permissions",
          "schema": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/permissions"
            }
          }
        },
        "default": {
          "description": "Unexpected error",
          "schema": {
            "$ref": "#/definitions/Error"
          }
        }
      }
    }
  },
  "/stripe/preconfigure": {
    "post": {
      "summary": "First call to make to change stripe keys",
      "tags": [
        "stripe"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "post_stripe_preconfigure",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "Stripe Keys",
          "in": "body",
          "description": "Public and private stripe keys",
          "required": true,
          "schema": {
            "$ref": "#/definitions/stripe_keys"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "Response message",
          "schema": {
            "$ref": "#/definitions/stripe_preconfigure"
          }
        }
      },
      "default": {
        "description": "Unexpected error",
        "schema": {
          "$ref": "#/definitions/Error"
        }
      }
    }
  },
  "/stripe/reconfigure": {
    "post": {
      "summary": "Second call to make to change stripe keys",
      "tags": [
        "stripe"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "post_stripe_reconfigure",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "parameters": [
        {
          "name": "Stripe Keys",
          "in": "body",
          "description": "Public and private stripe keys",
          "required": true,
          "schema": {
            "$ref": "#/definitions/stripe_keys"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "Response message",
          "type":"string",
          "name":"message"
        }
      },
      "default": {
        "description": "Unexpected error",
        "schema": {
          "$ref": "#/definitions/Error"
        }
      }
    }
  },
  "/stripe/keys": {
    "get": {
      "summary": "Gets stripe keys",
      "tags": [
        "stripe"
      ],
      "produces": [
        "application/json"
      ],
      "x-roles": [
        "admin"
      ],
      "operationId": "get_stripe_keys",
      "security": [
        {
          "internalApiKey": []
        }
      ],
      "responses": {
        "200": {
          "description": "Stripe Keys",
          "schema": {
            "$ref": "#/definitions/stripe_keys"
          }
        }
      },
      "default": {
        "description": "Unexpected error",
        "schema": {
          "$ref": "#/definitions/Error"
        }
      }
    }
  }
}