fix(webrtc): swagger annotations for WHEP routes (closes #3) #7
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-3-swagger-annotations"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #3.
WHEP
SubscribeandUnsubscribehad no@Summary/@Routerannotations, so/api/swagger/index.htmldidn't list them. Adds the standard annotations (matching the upstreamrtmp.go/srt.gopattern) and regeneratesdocs/docs.go,docs/swagger.json,docs/swagger.yamlviamake swagger.After:
swagger.jsonexposes both:Stacks on
m2-webrtc-core-integrationso it lands without depending on M3 (PR #5) or the issue-#2 fix (PR #6).Co-authored with Claude Opus 4.7.
The WHEP routes were mounted by http/server.go via the app/webrtc Handler.Register(), but Subscribe and Unsubscribe carried no swag annotations. The Swagger UI at /api/swagger/index.html therefore didn't list /api/v3/whep/* — programmatic API consumers and humans browsing the docs couldn't discover the endpoints. Adds the standard upstream-shaped @Summary / @Tags / @ID / @Router annotations on Subscribe and Unsubscribe (matching the rtmp.go and srt.go pattern) and regenerates docs/{docs.go,swagger.json,swagger.yaml} via 'make swagger'. Verified: swagger.json now contains both paths, swagger UI renders them under the v16.16.0 tag. Closes #3. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>Merged into
mainvia direct push as part of the v0.1.0-dragonfork release. Branch commits are reachable from main; closing this PR. Release: https://forge.wilddragon.net/zgaetano/datarhei-dragonfork-core/releases/tag/v0.1.0-dragonforkPull request closed