mirror of
https://github.com/usememos/memos.git
synced 2024-12-27 07:30:52 +08:00
769 B
769 B
Memo Relation APIs
Create Memo Relation
POST /api/v1/memo/:memoId/relation
Request Body
{
"relatedMemoId": 456,
"type": "REFERENCE"
}
Response
{
"memoId": 123,
"relatedMemoId": 456,
"type": "REFERENCE"
}
Status Codes
- 200: OK
- 400: Invalid request
- 500: Internal server error
Get Memo Relations
GET /api/v1/memo/:memoId/relation
Response
[
{
"memoId": 123,
"relatedMemoId": 456,
"type": "REFERENCE"
}
]
Status Codes
- 200: OK
- 500: Internal server error
Delete Memo Relation
DELETE /api/v1/memo/:memoId/relation/:relatedMemoId/type/:relationType
Status Codes
- 200: Deleted
- 400: Invalid request
- 500: Internal server error