{
  "openapi": "3.1.1",
  "info": {
    "title": "AutoPostSite | v1",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "http://aishowcase.dialtonetech.com/"
    }
  ],
  "paths": {
    "/api/status": {
      "get": {
        "tags": [
          "System"
        ],
        "operationId": "GetApiStatus",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/documentation": {
      "get": {
        "tags": [
          "Documentation"
        ],
        "operationId": "GetApiDocumentation",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/documentation/getting-started": {
      "get": {
        "tags": [
          "Documentation"
        ],
        "operationId": "GetGettingStartedContent",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/content/pages": {
      "get": {
        "tags": [
          "Content"
        ],
        "operationId": "ListPublishedContentPages",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/content/assets": {
      "get": {
        "tags": [
          "Content"
        ],
        "operationId": "GetContentAssetByQuery",
        "parameters": [
          {
            "name": "slug",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/content/pages/{slug}": {
      "get": {
        "tags": [
          "Content"
        ],
        "operationId": "GetPublishedContentPage",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Content"
        ],
        "operationId": "DeleteContentPage",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/content/pages/{slug}/assets/{assetPath}": {
      "get": {
        "tags": [
          "Content"
        ],
        "operationId": "GetContentAsset",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "assetPath",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/content/pages/single": {
      "post": {
        "tags": [
          "Content"
        ],
        "operationId": "PublishSinglePayloadContentPage",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishSinglePageRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/content/pages/multifile": {
      "post": {
        "tags": [
          "Content"
        ],
        "operationId": "PublishMultiFileContentPage",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PublishSinglePageRequest": {
        "required": [
          "slug",
          "title",
          "html",
          "css",
          "javaScript"
        ],
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "html": {
            "type": "string"
          },
          "css": {
            "type": [
              "null",
              "string"
            ]
          },
          "javaScript": {
            "type": [
              "null",
              "string"
            ]
          },
          "published": {
            "type": "boolean",
            "default": true
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "System"
    },
    {
      "name": "Documentation"
    },
    {
      "name": "Content"
    }
  ]
}