You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement version-specific endpoints for /servers/{id}
- Update /servers/{id} endpoint to return latest version by default
- Add /servers/{id}?version={version} endpoint for specific versions
- Add /servers/{id}/versions endpoint to list all versions
- Enhance database layer with ServerID filter support
- Update service layer with new methods: GetByIDAndVersion, GetVersionsByID
- Update API documentation and OpenAPI specification
- Refactor PostgreSQL filter logic to reduce complexity
- All tests pass and endpoints tested locally
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: docs/reference/api/openapi.yaml
+37-2Lines changed: 37 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ paths:
39
39
/v0/servers/{id}:
40
40
get:
41
41
summary: Get MCP server details
42
-
description: Returns detailed information about a specific MCP server
42
+
description: Returns detailed information about a specific MCP server. By default, returns the latest version. Use the 'version' query parameter to retrieve a specific version.
43
43
parameters:
44
44
- name: id
45
45
in: path
@@ -50,9 +50,10 @@ paths:
50
50
format: uuid
51
51
- name: version
52
52
in: query
53
-
description: Desired MCP server version
53
+
description: Specific version to retrieve (optional). If not provided, returns the latest version.
54
54
schema:
55
55
type: string
56
+
example: "1.0.2"
56
57
responses:
57
58
'200':
58
59
description: Detailed server information
@@ -70,6 +71,40 @@ paths:
70
71
error:
71
72
type: string
72
73
example: "Server not found"
74
+
/v0/servers/{id}/versions:
75
+
get:
76
+
summary: Get all versions of an MCP server
77
+
description: Returns a list of all versions for a specific MCP server
Description: "Get detailed information about a specific MCP server",
132
+
Description: "Get detailed information about a specific MCP server. Returns the latest version by default, or a specific version if the 'version' query parameter is provided.",
0 commit comments