WebsiteGPT

WebsiteGPT · GPT-Aktionen

OpenAI Profile

Creates a website based on user's business category

  • POST /api/v1/stores/accountscreateNewWebsite

    Create a new website.

  • POST /api/v1/stores/accounts/logouploadLogoForTheStore

    Upload a logo for the store

  • GET /api/v1/stores/openai/categoriesgetCategories

    Gets the list of available business categories

  • POST /api/v1/stores/openai/templatesgetTemplatesBasedOnCategory

    Gets the list of available templates for the category

Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "OpenAI Profile",
    "description": "Creates a website based on user's business category",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.aasaan.shop"
    }
  ],
  "paths": {
    "/api/v1/stores/accounts": {
      "post": {
        "deprecated": false,
        "description": "Create a new website.",
        "operationId": "createNewWebsite",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StoreCreationRequestSchema"
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/v1/stores/accounts/logo": {
      "post": {
        "description": "Upload a logo for the store",
        "operationId": "uploadLogoForTheStore",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadLogoSchema"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/v1/stores/openai/categories": {
      "get": {
        "description": "Gets the list of available business categories",
        "operationId": "getCategories",
        "parameters": [],
        "deprecated": false,
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/v1/stores/openai/templates": {
      "post": {
        "description": "Gets the list of available templates for the category",
        "operationId": "getTemplatesBasedOnCategory",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplatesRequestSchema"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "StoreCreationRequestSchema": {
        "properties": {
          "accountName": {
            "type": "string",
            "description": "Name of the business",
            "title": "Business Name"
          },
          "businessCategory": {
            "type": "string",
            "description": "Business category of the store",
            "title": "Business Category"
          },
          "country": {
            "type": "string",
            "description": "Country code of the store",
            "title": "Country",
            "pattern": "^[A-Za-z]{2}$"
          },
          "themeName": {
            "type": "string",
            "description": "Theme to be applied",
            "title": "Theme"
          }
        },
        "required": [
          "accountName",
          "businessCategory",
          "country",
          "themeName"
        ],
        "title": "StoreCreationRequestSchema",
        "type": "object"
      },
      "TemplatesRequestSchema": {
        "properties": {
          "category": {
            "type": "string",
            "description": "Business category of the store",
            "title": "Business Category"
          }
        },
        "required": [
          "category"
        ],
        "title": "TemplatesRequestSchema",
        "type": "object"
      },
      "UploadLogoSchema": {
        "properties": {
          "dataUriOfBase64ImageString": {
            "type": "string",
            "description": "Data URI of Base 64 Image string of the logo to be updated",
            "title": "Data URI of Base 64 Image String"
          },
          "urlOfTheStore": {
            "type": "string",
            "description": "Url of the store website that has been created",
            "title": "Url of the website created"
          }
        },
        "required": [
          "category"
        ],
        "title": "UploadLogoSchema",
        "type": "object"
      }
    }
  },
  "securitySchemes": {
    "apiKey": {
      "type": "apiKey"
    }
  }
}