LawGiBa 2.0

LawGiBa 2.0 · GPT 작업

Mermaid Image Generator

A service that generates images for Mermaid graph data.

  • GET /diagramGet the image URL for Mermaid graph data
원본 API 스키마
{
  "openapi": "3.0.1",
  "info": {
    "title": "Mermaid Image Generator",
    "description": "A service that generates images for Mermaid graph data.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://nguyenthanh.asia"
    }
  ],
  "paths": {
    "/diagram": {
      "get": {
        "operationId": "getMermaidImageUrl",
        "summary": "Get the image URL for Mermaid graph data",
        "parameters": [
          {
            "name": "graph",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Mermaid graph data"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getMermaidImageUrlResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "example": "Graph data is required"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "getMermaidImageUrlResponse": {
        "type": "object",
        "properties": {
          "image_url": {
            "type": "string",
            "description": "The URL of the generated image for the Mermaid graph data"
          }
        }
      }
    }
  }
}