mirror of
https://github.com/usememos/memos.git
synced 2024-12-27 07:30:52 +08:00
807 B
807 B
Tag APIs
Create Tag
POST /api/v1/tag
Request Body
{
"name": "python"
}
Response
"python"
Status Codes
- 200: Created
- 400: Invalid request
- 500: Internal server error
Get Tag List
GET /api/v1/tag
Response
["python", "golang", "javascript"]
Status Codes
- 200: OK
- 401: Unauthorized
- 500: Internal server error
Suggest Tags
GET /api/v1/tag/suggestion
Response
["django", "flask", "numpy"]
Status Codes
- 200: OK
- 401: Unauthorized
- 500: Internal server error
Delete Tag
POST /api/v1/tag/delete
Request Body
{
"name": "outdated_tag"
}
Status Codes
- 200: Deleted
- 400: Invalid request
- 401: Unauthorized
- 500: Internal server error