MemoryGPT
MemoryGPT · GPT 작업
Public Memory Board API
Add and get public posts in a shared memory board to access them later or share them with others
POST /api/PublicAdd new posts to a board, if no board is specified the generic board is usedAdd new posts to a board, if no board is specified the generic board is used
GET /api/PublicGet from the posts from a given board, if no board is passed than it return the generic boardGet from the posts from a given board, if no board is passed than it return the generic board
원본 API 스키마
{
"openapi": "3.0.1",
"info": {
"title": "Public Memory Board API",
"description": "Add and get public posts in a shared memory board to access them later or share them with others",
"version": "0.1"
},
"servers": [
{
"url": "https://publicmemoryboard-prod-api.azurewebsites.net",
"description": "Production Server"
}
],
"paths": {
"/api/Public": {
"post": {
"tags": [
"Public"
],
"summary": "Add new posts to a board, if no board is specified the generic board is used",
"description": "Add new posts to a board, if no board is specified the generic board is used",
"operationId": "AddPublicPost",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PostDTO"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/PostDTO"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/PostDTO"
}
}
}
},
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/Post"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/Post"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/Post"
}
}
}
}
}
},
"get": {
"tags": [
"Public"
],
"summary": "Get from the posts from a given board, if no board is passed than it return the generic board",
"description": "Get from the posts from a given board, if no board is passed than it return the generic board",
"operationId": "GetBoardPosts",
"parameters": [
{
"name": "board",
"in": "query",
"style": "form",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PostDTO"
}
}
},
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PostDTO"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PostDTO"
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Post": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"content": {
"type": "string",
"nullable": true
},
"board": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"PostDTO": {
"type": "object",
"properties": {
"content": {
"type": "string",
"description": "The content of the post",
"nullable": true
},
"board": {
"type": "string",
"description": "The Board of the post",
"nullable": true
}
},
"additionalProperties": false
}
}
}
}