Uniswap v3 Data Explorer

Uniswap v3 Data Explorer · GPT 작업

GraphQL Proxy API

A simple Flask API to forward GraphQL queries.

  • POST /graphql-queryForward a GraphQL query

    Sends a GraphQL query to a predefined GraphQL API and returns the response.

원본 API 스키마
{
  "openapi": "3.0.0",
  "info": {
    "title": "GraphQL Proxy API",
    "version": "1.0.0",
    "description": "A simple Flask API to forward GraphQL queries."
  },
  "servers": [
    {
      "url": "https://subgraph-rest.onrender.com/",
      "description": "Production server"
    }
  ],
  "paths": {
    "/graphql-query": {
      "post": {
        "summary": "Forward a GraphQL query",
        "description": "Sends a GraphQL query to a predefined GraphQL API and returns the response.",
        "operationId": "forwardGraphqlQuery",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string",
                    "description": "The GraphQL query to be forwarded."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response from GraphQL API",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "The data returned by the GraphQL API."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Error in forwarding the GraphQL query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "Error message."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}