オンラインメモ帳 GPT

オンラインメモ帳 GPT · GPT アクション

Sign Up and Sign In

Sign up new account or sign in existing account

  • POST /api/signupsignup

    Sign up new account

  • POST /api/signinsignin

    Sign in existing account

  • POST /api/write-memopost-memo

    Save memo to database

  • GET /api/read-memo/{userId}get-memo

    Get memo from database by userId

元の API スキーマ
{
  "openapi": "3.1.0",
  "info": {
    "title": "Sign Up and Sign In",
    "description": "Sign up new account or sign in existing account",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://us-central1-online-memo-gpt.cloudfunctions.net"
    }
  ],
  "paths": {
    "/api/signup": {
      "post": {
        "description": "Sign up new account",
        "operationId": "signup",
        "x-openai-isConsequential": false,
        "parameters": [
          {
            "name": "email",
            "in": "body",
            "description": "Email of the user",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "password",
            "in": "body",
            "description": "Password of the user",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/signin": {
      "post": {
        "description": "Sign in existing account",
        "operationId": "signin",
        "x-openai-isConsequential": false,
        "parameters": [
          {
            "name": "email",
            "in": "body",
            "description": "Email of the user",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "password",
            "in": "body",
            "description": "Password of the user",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/write-memo": {
      "post": {
        "description": "Save memo to database",
        "operationId": "post-memo",
        "x-openai-isConsequential": false,
        "parameters": [
          {
            "name": "userId",
            "in": "body",
            "description": "userId which user wants to save memo",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "memo",
            "in": "body",
            "description": "memo body which user wants to save",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/read-memo/{userId}": {
      "get": {
        "description": "Get memo from database by userId",
        "operationId": "get-memo",
        "x-openai-isConsequential": false,
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "userId which user wants to get memo",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {}
  }
}