Skip to content

API EndpointsΒ #38

@blkt

Description

@blkt

Description

ToolHive Registry must implement two sets of endpoints, one is the official one, the other one are ToolHive-specific extensions

Official Endpoints

  • GET /official/v0.1/servers
  • GET /official/v0.1/servers/{serverName}/versions
  • GET /official/v0.1/servers/{serverName}/versions/{version}
  • POST /official/v0.1/publish (must return not-implemented)

The official ones must follow upstream spec.
Consider adding support for an ETag header when implementing the GET /official/v0.1/servers.

Extension Endpoints

  • PUT /extension/v0/servers/<id>
  • DELETE /extension/v0/servers/<id>

The PUT endpoint must be idempotent.

Scope

This issue concerns itself with

  • the implementation of an HTTP server registering empty handlers for these endpoints, and
  • the implementation of structs representing the request and response objects
  • (optional) glue code for serialization/deserialization

Sub-issues

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions