Scholar Research Assistant

Scholar Research Assistant · GPT アクション

User Register API

API for sending name and password for register.

  • POST /macros/s/AKfycbykhvP0N2bVP_h3zdhX_MNWM_67nrbue-1A4z4w5v2YBQJ7W2GoIY97DiADDT7AUkyI/execRegister User
  • POST /macros/s/AKfycbws8M-mmbASrAMxoAQCeEkUzfkVPEeLBlRDjJKthveJv3SE84I1gR6EyX21hVfeZ6M1/execLogin User
  • POST /macros/s/AKfycbzb7t9r18jLTHMi7EOY37-6u0L8fEPX6U7rwMzrNfb1erV8Q8TQgeWyZtecJKgYEkQ7Yw/execLogout User
  • POST /macros/s/AKfycbwDwmbmMv5sh70EJdgBy0o7BI6vSFwywJ-gkfG4MC5E9LAdLXfVBB7bsmjI36lt3uQh/execSend Message
  • POST /macros/s/AKfycbw8eJb_sCFwhVDzCklPu_A2xf9CrUlRgqkpa52H51O6mh_C0UXjIOxcwYJIRyza0vxp/execReceive Message
  • POST /macros/s/AKfycbwLuvsP12Mr3fbvBeqGowRIAFb47xqaF9yd9kf7FDLNkSbekU1ZPlzTqbw3e5WKr5QS/execSend Prompt
  • POST /macros/s/AKfycbzCRZIU7V525b9ijaPoAv379LFR0_F-RKJZTcpF2ErMb3QCRg0ctr8qZnmlnD7pDyeZ/execCheck Message Statuses
元の API スキーマ
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "User Register API",
    "description": "API for sending name and password for register."
  },
  "servers": [
    {
      "url": "https://script.google.com"
    }
  ],
  "paths": {
    "/macros/s/AKfycbykhvP0N2bVP_h3zdhX_MNWM_67nrbue-1A4z4w5v2YBQJ7W2GoIY97DiADDT7AUkyI/exec": {
      "post": {
        "summary": "Register User",
        "operationId": "RegisterUser",
        "tags": [
          "user"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "password"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Register successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/macros/s/AKfycbws8M-mmbASrAMxoAQCeEkUzfkVPEeLBlRDjJKthveJv3SE84I1gR6EyX21hVfeZ6M1/exec": {
      "post": {
        "summary": "Login User",
        "operationId": "LoginUser",
        "tags": [
          "user"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "password"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Login successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/macros/s/AKfycbzb7t9r18jLTHMi7EOY37-6u0L8fEPX6U7rwMzrNfb1erV8Q8TQgeWyZtecJKgYEkQ7Yw/exec": {
      "post": {
        "summary": "Logout User",
        "operationId": "LogoutUser",
        "tags": [
          "user"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "token"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "token": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Logout successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/macros/s/AKfycbwDwmbmMv5sh70EJdgBy0o7BI6vSFwywJ-gkfG4MC5E9LAdLXfVBB7bsmjI36lt3uQh/exec": {
      "post": {
        "summary": "Send Message",
        "operationId": "SendMessage",
        "tags": [
          "message"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "receiverName",
                  "message",
                  "token"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "receiverName": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "token": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Message sent successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/macros/s/AKfycbw8eJb_sCFwhVDzCklPu_A2xf9CrUlRgqkpa52H51O6mh_C0UXjIOxcwYJIRyza0vxp/exec": {
      "post": {
        "summary": "Receive Message",
        "operationId": "ReceiveMessage",
        "tags": [
          "message"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "receiverName",
                  "token"
                ],
                "properties": {
                  "receiverName": {
                    "type": "string"
                  },
                  "token": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Messages received successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "senderName": {
                        "type": "string"
                      },
                      "message": {
                        "type": "string"
                      },
                      "time": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/macros/s/AKfycbwLuvsP12Mr3fbvBeqGowRIAFb47xqaF9yd9kf7FDLNkSbekU1ZPlzTqbw3e5WKr5QS/exec": {
      "post": {
        "summary": "Send Prompt",
        "operationId": "SendPrompt",
        "tags": [
          "prompt"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "prompt",
                  "token"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "prompt": {
                    "type": "string"
                  },
                  "token": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Prompt sent successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/macros/s/AKfycbzCRZIU7V525b9ijaPoAv379LFR0_F-RKJZTcpF2ErMb3QCRg0ctr8qZnmlnD7pDyeZ/exec": {
      "post": {
        "summary": "Check Message Statuses",
        "operationId": "CheckMessageStatuses",
        "tags": [
          "message"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "receiverName",
                  "token"
                ],
                "properties": {
                  "receiverName": {
                    "type": "string"
                  },
                  "token": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Message statuses checked successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "senderName": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "time": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}