Diagram Genius

Diagram Genius · Ações GPT

Adzedek API

This API is used to fetch advertisements to show.

  • GET /fetch_ad_to_show_GPTs/1716781103050x920183893303230500Fetch an advertisement to show

    Retrieves advertisement details including id and text.

Esquema API original
{
  "openapi": "3.0.0",
  "info": {
    "title": "Adzedek API",
    "description": "This API is used to fetch advertisements to show.",
    "version": "1.1.0"
  },
  "servers": [
    {
      "url": "https://api.adzedek.com",
      "description": "Main Adzedek API server"
    }
  ],
  "paths": {
    "/fetch_ad_to_show_GPTs/1716781103050x920183893303230500": {
      "get": {
        "operationId": "fetchAdToShowGPTs",
        "summary": "Fetch an advertisement to show",
        "description": "Retrieves advertisement details including id and text.",
        "parameters": [
          {
            "in": "query",
            "name": "conversation_context",
            "schema": {
              "type": "string"
            },
            "description": "The full user input. If this is the first message in the conversation, add \"[start]\" before the string, otherwise add \"[continue]\" before the string."
          }
        ],
        "responses": {
          "200": {
            "description": "A JSON object containing the advertisement details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AdResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "adzedek-api"
      }
    }
  }
}

Diagram Genius API Documentation

An API that allows the user to generate diagrams from Mermaid markdown.

  • POST /generate-diagramGenerate a diagram from Mermaid markdown
Esquema API original
{
  "openapi": "3.0.1",
  "info": {
    "title": "Diagram Genius API Documentation",
    "description": "An API that allows the user to generate diagrams from Mermaid markdown.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://diagramgenius.com"
    }
  ],
  "paths": {
    "/generate-diagram": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "generateDiagram",
        "summary": "Generate a diagram from Mermaid markdown",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mermaidMarkdown": {
                    "type": "string",
                    "description": "Mermaid markdown to be converted into a diagram"
                  }
                },
                "required": [
                  "mermaidMarkdown"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Diagrams generated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Diagram generated successfully"
                    },
                    "pngLink": {
                      "type": "string",
                      "description": "URL to the generated PNG image",
                      "example": "/diagrams/images/467ee2f1-d616-40cf-9b4c-a65576b5fd05.png"
                    },
                    "svgLink": {
                      "type": "string",
                      "description": "URL to the generated SVG image",
                      "example": "/diagrams/images/467ee2f1-d616-40cf-9b4c-a65576b5fd05.svg"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error: No Mermaid markdown provided or invalid syntax"
          },
          "500": {
            "description": "Internal server error"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {}
  },
  "tags": []
}