Rate My GPT

Rate My GPT · Acciones GPT

GPT Creation API

API for creating and retrieving GPT entries.

  • POST /create_gptCreate GPT Entry

    Endpoint to create a new GPT entry.

  • GET /get_ratings/{gpt_id}Get Ratings for GPT Entry

    Endpoint to retrieve ratings for a specific GPT entry.

Esquema original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "GPT Creation API",
    "description": "API for creating and retrieving GPT entries.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://ratemygpt-d2fefch5kq-uc.a.run.app",
      "description": "Production server"
    }
  ],
  "paths": {
    "/create_gpt": {
      "post": {
        "summary": "Create GPT Entry",
        "description": "Endpoint to create a new GPT entry.",
        "operationId": "CreateGPT",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "author_name": {
                    "type": "string"
                  },
                  "author_email": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "GPT entry created successfully. Returns relevant information."
          },
          "400": {
            "description": "Error in processing request."
          }
        }
      }
    },
    "/get_ratings/{gpt_id}": {
      "get": {
        "summary": "Get Ratings for GPT Entry",
        "description": "Endpoint to retrieve ratings for a specific GPT entry.",
        "operationId": "GetGPTEntryRatings",
        "parameters": [
          {
            "name": "gpt_id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the GPT entry.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "password",
            "in": "query",
            "required": true,
            "description": "Password for authentication.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ratings retrieved successfully."
          },
          "401": {
            "description": "Unauthorized: Incorrect password."
          },
          "404": {
            "description": "GPT entry not found."
          }
        }
      }
    }
  }
}

GPT Creation API

API for creating and retrieving GPT entries.

  • POST /create_gptCreate GPT Entry

    Endpoint to create a new GPT entry.

  • GET /get_ratings/{gpt_id}Get Ratings for GPT Entry

    Endpoint to retrieve ratings for a specific GPT entry.

Esquema original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "GPT Creation API",
    "description": "API for creating and retrieving GPT entries.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://ratemygpt-d2fefch5kq-uc.a.run.app",
      "description": "Production server"
    }
  ],
  "paths": {
    "/create_gpt": {
      "post": {
        "summary": "Create GPT Entry",
        "description": "Endpoint to create a new GPT entry.",
        "operationId": "CreateGPT",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "author_name": {
                    "type": "string"
                  },
                  "author_email": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "GPT entry created successfully. Returns relevant information."
          },
          "400": {
            "description": "Error in processing request."
          }
        }
      }
    },
    "/get_ratings/{gpt_id}": {
      "get": {
        "summary": "Get Ratings for GPT Entry",
        "description": "Endpoint to retrieve ratings for a specific GPT entry.",
        "operationId": "GetGPTEntryRatings",
        "parameters": [
          {
            "name": "gpt_id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the GPT entry.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "password",
            "in": "query",
            "required": true,
            "description": "Password for authentication.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ratings retrieved successfully."
          },
          "401": {
            "description": "Unauthorized: Incorrect password."
          },
          "404": {
            "description": "GPT entry not found."
          }
        }
      }
    }
  }
}