{
  "openapi": "3.0.1",
  "info": {
    "title": "IosInterlayer",
    "version": "1.0"
  },
  "paths": {
    "/admin/routemap": {
      "get": {
        "tags": [
          "Admin"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/admin/routemap/entry": {
      "post": {
        "tags": [
          "Admin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RouteMapUpsertRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RouteMapUpsertRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RouteMapUpsertRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/admin/push/test": {
      "post": {
        "tags": [
          "Admin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestPushRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TestPushRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TestPushRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/admin/privacy/{host}": {
      "get": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "host",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "host",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/admin/support/{host}": {
      "get": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "host",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "host",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "supportRoute": {
                    "type": "string"
                  },
                  "stubRoute": {
                    "type": "string"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                },
                "supportRoute": {
                  "style": "form"
                },
                "stubRoute": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/admin/assets/{prefix}": {
      "put": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "prefix",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "prefix",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/admin/assets": {
      "get": {
        "tags": [
          "Admin"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/{path}": {
      "get": {
        "tags": [
          "IosRoute"
        ],
        "parameters": [
          {
            "name": "path",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "IosRoute"
        ],
        "parameters": [
          {
            "name": "path",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "IosRoute"
        ],
        "parameters": [
          {
            "name": "path",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "patch": {
        "tags": [
          "IosRoute"
        ],
        "parameters": [
          {
            "name": "path",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "IosRoute"
        ],
        "parameters": [
          {
            "name": "path",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/": {
      "get": {
        "tags": [
          "Privacy"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "JsonNode": {
        "type": "object",
        "properties": {
          "options": {
            "$ref": "#/components/schemas/JsonNodeOptions"
          },
          "parent": {
            "$ref": "#/components/schemas/JsonNode"
          },
          "root": {
            "$ref": "#/components/schemas/JsonNode"
          }
        },
        "additionalProperties": false
      },
      "JsonNodeOptions": {
        "type": "object",
        "properties": {
          "propertyNameCaseInsensitive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "RouteMapUpsertRequest": {
        "type": "object",
        "properties": {
          "greyDomain": {
            "type": "string",
            "nullable": true
          },
          "whiteDomain": {
            "type": "string",
            "nullable": true
          },
          "greyEndpoints": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "mergeHuinfoIntoWhite": {
            "type": "boolean",
            "nullable": true
          },
          "huinfoKey": {
            "type": "string",
            "nullable": true
          },
          "encodeHuinfoBase64": {
            "type": "boolean",
            "nullable": true
          },
          "encodeResponseBase64": {
            "type": "boolean",
            "nullable": true
          },
          "appBackend": {
            "type": "string",
            "nullable": true
          },
          "appBackendUrl": {
            "type": "string",
            "nullable": true
          },
          "appBackendRoutes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "redirect": {
            "type": "boolean",
            "nullable": true
          },
          "pushRoute": {
            "type": "string",
            "nullable": true
          },
          "supportRoute": {
            "type": "string",
            "nullable": true
          },
          "stubRoute": {
            "type": "string",
            "nullable": true
          },
          "whiteKingMode": {
            "type": "boolean",
            "nullable": true
          },
          "whiteKingEndpoint": {
            "type": "string",
            "nullable": true
          },
          "whiteKingJson": {
            "$ref": "#/components/schemas/JsonNode"
          },
          "whiteKingFlag": {
            "type": "string",
            "nullable": true
          },
          "whiteKingLink": {
            "type": "string",
            "nullable": true
          },
          "isCustomTabs": {
            "type": "boolean",
            "nullable": true
          },
          "whiteAsError": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TestPushRequest": {
        "type": "object",
        "properties": {
          "host": {
            "type": "string",
            "nullable": true
          },
          "gadid": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "AdminToken": {
        "type": "apiKey",
        "description": "Admin token for /admin endpoints",
        "name": "X-Admin-Token",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "AdminToken": [ ]
    }
  ]
}