Skip to content

Commit 8c2fc33

Browse files
committed
Swagger annotations
1 parent 6e69f90 commit 8c2fc33

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

coderd/userauth.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ import (
3434

3535
// postConvertLoginType replies with an oauth state token capable of converting
3636
// the user to an oauth user.
37+
//
38+
// @Summary Convert user from password to oauth authentication
39+
// @ID convert-login-type
40+
// @Accept json
41+
// @Produce json
42+
// @Tags Authorization
43+
// @Param request body codersdk.ConvertLoginRequest true "Convert request"
44+
// @Success 201 {object} codersdk.OauthConversionResponse
45+
// @Router /users/convert-login [post]
3746
func (api *API) postConvertLoginType(rw http.ResponseWriter, r *http.Request) {
3847
var (
3948
ctx = r.Context()

0 commit comments

Comments
 (0)