API Documentation - AdemKao/github-mcp-demo GitHub Wiki
API Documentation
Authentication Endpoints
POST /api/auth/register
Register a new user
{
"email": "string",
"password": "string",
"name": "string"
}
POST /api/auth/login
User login
{
"email": "string",
"password": "string"
}
Record Endpoints
GET /api/records
List all records
- Headers: Authorization Bearer token
- Query parameters:
- page: number
- limit: number
- search: string
POST /api/records
Create a new record
- Headers: Authorization Bearer token
{
"title": "string",
"content": "string",
"tags": ["string"]
}
PUT /api/records/:id
Update a record
- Headers: Authorization Bearer token
{
"title": "string",
"content": "string",
"tags": ["string"]
}
DELETE /api/records/:id
Delete a record
- Headers: Authorization Bearer token