Chitter - Ideas
Chitter - Ideas · Acciones GPT
Chitter Ideas Plugin
A plugin that allows users to post and view ideas using ChatGPT.
POST /createStoryPost a new ideaGET /getStoriesRetrieve the latest three ideas
Esquema original API
{
"openapi": "3.0.1",
"info": {
"title": "Chitter Ideas Plugin",
"description": "A plugin that allows users to post and view ideas using ChatGPT.",
"version": "v1"
},
"servers": [
{
"url": "https://chitter-vercel.vercel.app/api/"
}
],
"paths": {
"/createStory": {
"post": {
"operationId": "createStory",
"summary": "Post a new idea",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IdeaRequest"
}
}
}
},
"responses": {
"201": {
"description": "Idea created successfully."
}
}
}
},
"/getStories": {
"get": {
"operationId": "getStories",
"summary": "Retrieve the latest three ideas",
"parameters": [
{
"in": "query",
"name": "type",
"required": false,
"schema": {
"type": "string",
"enum": [
"idea"
]
},
"description": "The idea type"
}
],
"responses": {
"200": {
"description": "A list of the latest three ideas with type equal to idea.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IdeasResponse"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"IdeasResponse": {
"type": "object",
"properties": {
"stories": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Idea"
},
"description": "An array of ideas."
}
}
},
"IdeaRequest": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "The title of the idea."
},
"content": {
"type": "string",
"description": "The idea content."
},
"authorId": {
"type": "string",
"description": "The author's ID (optional, can be null for anonymous ideas)."
},
"isPublic": {
"type": "boolean",
"description": "Whether the story is public or private."
},
"type": {
"type": "string",
"enum": [
"idea"
],
"description": "The type of the content (idea)."
}
}
},
"Idea": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The unique identifier for the idea."
},
"title": {
"type": "string"
},
"content": {
"type": "string"
},
"authorId": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"isPublic": {
"type": "boolean"
},
"type": {
"type": "string",
"enum": [
"idea"
],
"description": "The type of the content (story, dream, secret, idea)."
}
}
}
}
}
}