Virtual Buddy

Virtual Buddy · GPT アクション

Virtual Buddy Database Action Service API

Enables GPT models to interact with a Virtual Buddy Custom API for data manipulation.

  • POST /dataCreate Data

    Create new data entry for a user.

  • GET /data/{id}Get Data

    Retrieve a specific data entry.

  • PATCH /data/{id}Partial Update Data

    Update specific fields of a data entry.

  • DELETE /data/{id}Delete Data

    Delete a specific data entry.

  • GET /listAllDataGet All Data

    Retrieve all data entries from the database.

  • GET /searchSearch Data

    Search the database using a query string.

  • GET /testTest Endpoint

    API test endpoint.

元の API スキーマ
{
  "openapi": "3.0.2",
  "info": {
    "title": "Virtual Buddy Database Action Service API",
    "version": "1.0.1",
    "description": "Enables GPT models to interact with a Virtual Buddy Custom API for data manipulation."
  },
  "servers": [
    {
      "url": "https://thinkbloxph.com/db-action-service-virtual-buddy/api"
    }
  ],
  "paths": {
    "/data": {
      "post": {
        "operationId": "createData",
        "summary": "Create Data",
        "description": "Create new data entry for a user.",
        "requestBody": {
          "description": "Data to create",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dataField": {
                    "type": "string"
                  }
                },
                "additionalProperties": true
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Data Created"
          }
        }
      }
    },
    "/data/{id}": {
      "get": {
        "operationId": "getData",
        "summary": "Get Data",
        "description": "Retrieve a specific data entry.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Data Retrieved"
          }
        }
      },
      "patch": {
        "operationId": "partialUpdateData",
        "summary": "Partial Update Data",
        "description": "Update specific fields of a data entry.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Data fields to update",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dataField": {
                    "type": "string"
                  }
                },
                "additionalProperties": true
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Data Partially Updated"
          }
        }
      },
      "delete": {
        "operationId": "deleteData",
        "summary": "Delete Data",
        "description": "Delete a specific data entry.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Data Deleted"
          }
        }
      }
    },
    "/listAllData": {
      "get": {
        "operationId": "getAllData",
        "summary": "Get All Data",
        "description": "Retrieve all data entries from the database.",
        "responses": {
          "200": {
            "description": "All Data Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/search": {
      "get": {
        "operationId": "searchData",
        "summary": "Search Data",
        "description": "Search the database using a query string.",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Search query string"
          }
        ],
        "responses": {
          "200": {
            "description": "Search Results",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/test": {
      "get": {
        "operationId": "testEndpoint",
        "summary": "Test Endpoint",
        "description": "API test endpoint.",
        "responses": {
          "200": {
            "description": "Test Successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        }
      }
    }
  }
}

Custom GPT Google Calendar API Integration

This schema enables the custom GPT to interact with the Google Calendar API for managing calendar events.

  • GET /users/me/calendarListList all calendars available to the user
  • GET /calendars/{calendarId}/eventsRetrieve events from a specific calendar
  • POST /calendars/{calendarId}/eventsCreate a new event in a specific calendar
元の API スキーマ
{
  "openapi": "3.1.0",
  "info": {
    "title": "Custom GPT Google Calendar API Integration",
    "version": "1.0.0",
    "description": "This schema enables the custom GPT to interact with the Google Calendar API for managing calendar events."
  },
  "servers": [
    {
      "url": "https://www.googleapis.com/calendar/v3",
      "description": "Google Calendar API Server"
    }
  ],
  "paths": {
    "/users/me/calendarList": {
      "get": {
        "operationId": "listCalendars",
        "summary": "List all calendars available to the user",
        "responses": {
          "200": {
            "description": "Successful response with a list of calendars"
          }
        }
      }
    },
    "/calendars/{calendarId}/events": {
      "get": {
        "operationId": "getCalendarEvents",
        "summary": "Retrieve events from a specific calendar",
        "parameters": [
          {
            "name": "calendarId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The identifier of the calendar to retrieve events from"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with calendar events"
          }
        }
      },
      "post": {
        "operationId": "createCalendarEvent",
        "summary": "Create a new event in a specific calendar",
        "parameters": [
          {
            "name": "calendarId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The identifier of the calendar to create an event in"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Event"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful creation of the event"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Event": {
        "type": "object",
        "properties": {
          "summary": {
            "type": "string",
            "description": "Title of the event"
          },
          "location": {
            "type": "string",
            "description": "Location of the event"
          },
          "description": {
            "type": "string",
            "description": "Description of the event"
          },
          "start": {
            "type": "object",
            "description": "Start time of the event"
          },
          "end": {
            "type": "object",
            "description": "End time of the event"
          }
        },
        "required": [
          "summary",
          "start",
          "end"
        ]
      }
    },
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://accounts.google.com/o/oauth2/auth",
            "tokenUrl": "https://accounts.google.com/o/oauth2/token",
            "scopes": {
              "https://www.googleapis.com/auth/calendar": "Manage your calendars",
              "https://www.googleapis.com/auth/calendar.events": "Manage your calendar events"
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "OAuth2": []
    }
  ]
}