Skip to content

Commit d53ea05

Browse files
committed
Update swagger
1 parent 45396b3 commit d53ea05

File tree

8 files changed

+118
-122
lines changed

8 files changed

+118
-122
lines changed

coderd/apidoc/docs.go

Lines changed: 27 additions & 27 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: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/dbmem/dbmem.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ func (*FakeQuerier) DeleteCoordinator(context.Context, uuid.UUID) error {
10191019
return ErrUnimplemented
10201020
}
10211021

1022-
func (q *FakeQuerier) DeleteExternalAuthLink(ctx context.Context, arg database.DeleteExternalAuthLinkParams) error {
1022+
func (q *FakeQuerier) DeleteExternalAuthLink(_ context.Context, arg database.DeleteExternalAuthLinkParams) error {
10231023
err := validateDatabaseType(arg)
10241024
if err != nil {
10251025
return err

coderd/externalauth.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
// @Summary Get external auth by ID
2222
// @ID get-external-auth-by-id
2323
// @Security CoderSessionToken
24-
// @Produce json
2524
// @Tags Git
25+
// @Produce json
2626
// @Param externalauth path string true "Git Provider ID" format(string)
2727
// @Success 200 {object} codersdk.ExternalAuth
2828
// @Router /external-auth/{externalauth} [get]
@@ -78,14 +78,15 @@ func (api *API) externalAuthByID(w http.ResponseWriter, r *http.Request) {
7878
httpapi.Write(ctx, w, http.StatusOK, res)
7979
}
8080

81+
// deleteExternalAuthByID only deletes the link on the Coder side, does not revoke the token on the provider side.
82+
//
8183
// @Summary Delete external auth user link by ID
8284
// @ID delete-external-auth-user-link-by-id
8385
// @Security CoderSessionToken
84-
// @Produce json
85-
// @Param externalauth path string true "Git Provider ID" format(string)
86+
// @Tags Git
8687
// @Success 200
88+
// @Param externalauth path string true "Git Provider ID" format(string)
8789
// @Router /external-auth/{externalauth} [delete]
88-
// deleteExternalAuthByID only deletes the link on the Coder side, does not revoke the token on the provider side.
8990
func (api *API) deleteExternalAuthByID(w http.ResponseWriter, r *http.Request) {
9091
config := httpmw.ExternalAuthParam(r)
9192
apiKey := httpmw.APIKey(r)
@@ -313,9 +314,9 @@ func (api *API) externalAuthCallback(externalAuthConfig *externalauth.Config) ht
313314
// @ID get-user-external-auths
314315
// @Security CoderSessionToken
315316
// @Produce json
316-
// @Tags Users
317+
// @Tags Git
317318
// @Success 200 {object} codersdk.ExternalAuthLink
318-
// @Router /users/external-auths [get]
319+
// @Router /external-auth [get]
319320
func (api *API) userExternalAuths(rw http.ResponseWriter, r *http.Request) {
320321
ctx := r.Context()
321322
key := httpmw.APIKey(r)

docs/api/default.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

docs/api/git.md

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

docs/api/users.md

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

docs/manifest.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,10 +523,6 @@
523523
"title": "Debug",
524524
"path": "./api/debug.md"
525525
},
526-
{
527-
"title": "Default",
528-
"path": "./api/default.md"
529-
},
530526
{
531527
"title": "Enterprise",
532528
"path": "./api/enterprise.md"

0 commit comments

Comments
 (0)