Skip to content

Commit 5645fc7

Browse files
committed
Comon swagger, this has to be it
1 parent 1a68ff9 commit 5645fc7

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

coderd/apidoc/docs.go

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/users.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ import (
3131
// userDebugOIDC returns the OIDC debug context for the user.
3232
// Not going to expose this via swagger as the return payload is not guaranteed
3333
// to be consistent between releases.
34+
//
35+
// @Summary Debug OIDC context for a user
36+
// @ID debug-oidc-context-for-a-user
37+
// @Security CoderSessionToken
38+
// @Tags Agents
39+
// @Success 200 "Success"
40+
// @Param user path string true "User ID, name, or me"
41+
// @Router /debug/{user}/debug-link [get]
42+
// @x-apidocgen {"skip": true}
3443
func (api *API) userDebugOIDC(rw http.ResponseWriter, r *http.Request) {
3544
var (
3645
ctx = r.Context()

0 commit comments

Comments
 (0)