M2: WHEP route mounted on /api/v3/whep/:id — Swagger docs don't list it #3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
http/server.gomounts the WebRTC handler vias.v3handler.webrtc.Register(v3)which addsPOST /api/v3/whep/:idandDELETE /api/v3/whep/:id/:peerid. They serve correctly — verified against the live deploy.Swagger UI (
/api/swagger/index.html) does not show these routes becausedocs/docs.gowas generated from upstream and hasn't been regenerated since the M2 routes were added. Programmatic API consumers and humans browsing the docs won't discover the WHEP path.Repro
Fix (M4 / docs polish)
Add Swagger annotations on
app/webrtc.Handler.SubscribeandUnsubscribe, then runmake swagger(or whatever the existing toolchain uses — see upstream'sMakefile). Re-commit regenerateddocs/docs.go,swagger.json,swagger.yaml.Severity
Documentation only. The endpoint works.