Document REST API endpoints and GraphQL operations in the Meshery server.
Document REST API endpoints and GraphQL operations in the Meshery server.
Invoke this skill with a target handler file or directory:
/api-doc server/handlers/design_handler.go/api-doc server/handlers/ (document all handlers)server/router/ to find URL paths and HTTP methods mapped to each handler.server/models/ referenced by the handlers.For each endpoint, document:
### `METHOD /api/path`
**Description**: Brief description of what the endpoint does.
**Authentication**: Required / Not required
**Parameters**:
| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| id | path | string | yes | Resource identifier |
| page | query | int | no | Page number (default: 1) |
**Request Body** (if applicable):
```json
{
"field": "type — description"
}
```
**Response** `200 OK`:
```json
{
"field": "type — description"
}
```
**Error Responses**:
| Status | Description |
|--------|-------------|
| 400 | Invalid request body |
| 401 | Authentication required |
| 404 | Resource not found |
json:"field_name")