-
Notifications
You must be signed in to change notification settings - Fork 209
Skills API handlers #3744
Copy link
Copy link
Closed
Labels
apiItems related to the APIItems related to the APIenhancementNew feature or requestNew feature or requestgoPull requests that update go codePull requests that update go codeskillsSkills lifecycle managementSkills lifecycle managementtoolhive-platformToolHive Platform teamToolHive Platform team
Metadata
Metadata
Assignees
Labels
apiItems related to the APIItems related to the APIenhancementNew feature or requestNew feature or requestgoPull requests that update go codePull requests that update go codeskillsSkills lifecycle managementSkills lifecycle managementtoolhive-platformToolHive Platform teamToolHive Platform team
Description
Replace the 501 Not Implemented stubs in
pkg/api/v1/skills.gowith basic handlers that delegate to theSkillServicefor storage CRUD. This is the foundation that #3651 later extends with full OCI endpoints (validate, build, push).Parent: #3741
Dependencies: #3742
Extended by: #3651 (adds full handler logic with OCI operations, richer filtering)
Acceptance Criteria
GET /api/v1beta/skills— list skills with optional?scope=filterPOST /api/v1beta/skills/install— record skill installation (metadata only — OCI pull added by REST API skills handlers #3651)POST /api/v1beta/skills/uninstall— uninstall skillGET /api/v1beta/skills/{name}— get skill infoPOST /api/v1beta/skills/validate— delegates to existing validator (already works)POST /api/v1beta/skills/build,POST /api/v1beta/skills/push— return appropriate "not yet implemented" until REST API skills handlers #3651SkillServiceCode Pointers
pkg/api/v1/skills.go— existing 501 stubs andSkillsRouterpkg/api/v1/groups.go— reference for handler patternspkg/api/v1/workloads.go— reference for query parameter handlingSize Estimate
~150 LOC code, 1 file (excluding tests)