Roast My Site

Roast My Site · GPT 작업

OpenAPI

  • POST /api/screenshotCreate a new Screenshot
원본 API 스키마
{
  "openapi": "3.1.0",
  "info": {
    "version": "1.0.0",
    "title": "OpenAPI"
  },
  "servers": [
    {
      "url": "https://screenshot.sitespeak.ai",
      "description": "Production server"
    }
  ],
  "components": {
    "schemas": {},
    "parameters": {}
  },
  "paths": {
    "/api/screenshot": {
      "post": {
        "tags": [
          "Screenshots"
        ],
        "summary": "Create a new Screenshot",
        "operationId": "createScreenshot",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The URL to take a screenshot of"
            },
            "required": true,
            "name": "url",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the created screenshot",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "screenshot": {
                          "type": "object",
                          "properties": {
                            "url": {
                              "type": "string"
                            },
                            "img": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "url",
                            "img"
                          ]
                        }
                      },
                      "required": [
                        "screenshot"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "result"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {}
}