Night Whisper Bottle-梦语瓶(梦境漂流瓶)
Night Whisper Bottle-梦语瓶(梦境漂流瓶) · GPT 작업
DreamBottle API
API for the DreamBottle app, allowing users to throw and pick up dream bottles.
POST /receiveThrows a dream bottle into the virtual sea.GET /get随机显示一个非当前用户的梦想漂流瓶
원본 API 스키마
openapi: 3.0.0
info:
title: DreamBottle API
description: API for the DreamBottle app, allowing users to throw and pick up dream bottles.
version: 1.0.0
servers:
- url: https://gpts.ihippogame.com
description: Main server for the DreamBottle app
paths:
/receive:
post:
operationId: throwBottle
summary: Throws a dream bottle into the virtual sea.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
dream:
type: string
description: 用户描述的完整梦境文本。如果用户与GPT一起续写了梦境,同样需要记录GPT的描述部分。文本应保持原样,不需要润色,但请去除多余的空格和换行符。如果处理后的文本超过500字或单词,需要对文本进行压缩。
responses:
"200":
description: 漂流瓶已接收
"400":
description: 错误的请求格式
/get:
get:
operationId: getRandomDream
summary: 随机显示一个非当前用户的梦想漂流瓶
parameters:
- name: userId
in: query
required: true
description: 请求者的用户ID,用于避免返回该用户自己的漂流瓶
schema:
type: string
responses:
"200":
description: 漂流瓶信息
content:
application/json:
schema:
type: object
properties:
dream:
type: string
description: 完整用户描述的梦想文本
"404":
description: 未找到漂流瓶