@@ -104,23 +104,23 @@ type adminListIdentities struct {
104
104
105
105
// swagger:route GET /admin/identities v0alpha2 adminListIdentities
106
106
//
107
- // List Identities
107
+ // # List Identities
108
108
//
109
109
// Lists all identities. Does not support search at the moment.
110
110
//
111
111
// Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
112
112
//
113
- // Produces:
114
- // - application/json
113
+ // Produces:
114
+ // - application/json
115
115
//
116
- // Schemes: http, https
116
+ // Schemes: http, https
117
117
//
118
- // Security:
119
- // oryAccessToken:
118
+ // Security:
119
+ // oryAccessToken:
120
120
//
121
- // Responses:
122
- // 200: identityList
123
- // 500: jsonError
121
+ // Responses:
122
+ // 200: identityList
123
+ // 500: jsonError
124
124
func (h * Handler ) list (w http.ResponseWriter , r * http.Request , _ httprouter.Params ) {
125
125
page , itemsPerPage := x .ParsePagination (r )
126
126
is , err := h .r .IdentityPool ().ListIdentities (r .Context (), page , itemsPerPage )
@@ -160,25 +160,25 @@ type adminGetIdentity struct {
160
160
161
161
// swagger:route GET /admin/identities/{id} v0alpha2 adminGetIdentity
162
162
//
163
- // Get an Identity
163
+ // # Get an Identity
164
164
//
165
165
// Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
166
166
//
167
- // Consumes:
168
- // - application/json
167
+ // Consumes:
168
+ // - application/json
169
169
//
170
- // Produces:
171
- // - application/json
170
+ // Produces:
171
+ // - application/json
172
172
//
173
- // Schemes: http, https
173
+ // Schemes: http, https
174
174
//
175
- // Security:
176
- // oryAccessToken:
175
+ // Security:
176
+ // oryAccessToken:
177
177
//
178
- // Responses:
179
- // 200: identity
180
- // 404: jsonError
181
- // 500: jsonError
178
+ // Responses:
179
+ // 200: identity
180
+ // 404: jsonError
181
+ // 500: jsonError
182
182
func (h * Handler ) get (w http.ResponseWriter , r * http.Request , ps httprouter.Params ) {
183
183
i , err := h .r .PrivilegedIdentityPool ().GetIdentityConfidential (r .Context (), x .ParseUUID (ps .ByName ("id" )))
184
184
if err != nil {
@@ -309,26 +309,26 @@ type AdminCreateIdentityImportCredentialsOidcProvider struct {
309
309
310
310
// swagger:route POST /admin/identities v0alpha2 adminCreateIdentity
311
311
//
312
- // Create an Identity
312
+ // # Create an Identity
313
313
//
314
314
// This endpoint creates an identity. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
315
315
//
316
- // Consumes:
317
- // - application/json
316
+ // Consumes:
317
+ // - application/json
318
318
//
319
- // Produces:
320
- // - application/json
319
+ // Produces:
320
+ // - application/json
321
321
//
322
- // Schemes: http, https
322
+ // Schemes: http, https
323
323
//
324
- // Security:
325
- // oryAccessToken:
324
+ // Security:
325
+ // oryAccessToken:
326
326
//
327
- // Responses:
328
- // 201: identity
329
- // 400: jsonError
330
- // 409: jsonError
331
- // 500: jsonError
327
+ // Responses:
328
+ // 201: identity
329
+ // 400: jsonError
330
+ // 409: jsonError
331
+ // 500: jsonError
332
332
func (h * Handler ) create (w http.ResponseWriter , r * http.Request , _ httprouter.Params ) {
333
333
var cr AdminCreateIdentityBody
334
334
if err := jsonx .NewStrictDecoder (r .Body ).Decode (& cr ); err != nil {
@@ -426,29 +426,29 @@ type AdminUpdateIdentityBody struct {
426
426
427
427
// swagger:route PUT /admin/identities/{id} v0alpha2 adminUpdateIdentity
428
428
//
429
- // Update an Identity
429
+ // # Update an Identity
430
430
//
431
431
// This endpoint updates an identity. The full identity payload (except credentials) is expected. This endpoint does not support patching.
432
432
//
433
433
// Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
434
434
//
435
- // Consumes:
436
- // - application/json
435
+ // Consumes:
436
+ // - application/json
437
437
//
438
- // Produces:
439
- // - application/json
438
+ // Produces:
439
+ // - application/json
440
440
//
441
- // Schemes: http, https
441
+ // Schemes: http, https
442
442
//
443
- // Security:
444
- // oryAccessToken:
443
+ // Security:
444
+ // oryAccessToken:
445
445
//
446
- // Responses:
447
- // 200: identity
448
- // 400: jsonError
449
- // 404: jsonError
450
- // 409: jsonError
451
- // 500: jsonError
446
+ // Responses:
447
+ // 200: identity
448
+ // 400: jsonError
449
+ // 404: jsonError
450
+ // 409: jsonError
451
+ // 500: jsonError
452
452
func (h * Handler ) update (w http.ResponseWriter , r * http.Request , ps httprouter.Params ) {
453
453
var ur AdminUpdateIdentityBody
454
454
if err := h .dx .Decode (r , & ur ,
@@ -516,26 +516,26 @@ type adminDeleteIdentity struct {
516
516
517
517
// swagger:route DELETE /admin/identities/{id} v0alpha2 adminDeleteIdentity
518
518
//
519
- // Delete an Identity
519
+ // # Delete an Identity
520
520
//
521
521
// Calling this endpoint irrecoverably and permanently deletes the identity given its ID. This action can not be undone.
522
522
// This endpoint returns 204 when the identity was deleted or when the identity was not found, in which case it is
523
523
// assumed that is has been deleted already.
524
524
//
525
525
// Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
526
526
//
527
- // Produces:
528
- // - application/json
527
+ // Produces:
528
+ // - application/json
529
529
//
530
- // Schemes: http, https
530
+ // Schemes: http, https
531
531
//
532
- // Security:
533
- // oryAccessToken:
532
+ // Security:
533
+ // oryAccessToken:
534
534
//
535
- // Responses:
536
- // 204: emptyResponse
537
- // 404: jsonError
538
- // 500: jsonError
535
+ // Responses:
536
+ // 204: emptyResponse
537
+ // 404: jsonError
538
+ // 500: jsonError
539
539
func (h * Handler ) delete (w http.ResponseWriter , r * http.Request , ps httprouter.Params ) {
540
540
if err := h .r .IdentityPool ().(PrivilegedPool ).DeleteIdentity (r .Context (), x .ParseUUID (ps .ByName ("id" ))); err != nil {
541
541
h .r .Writer ().WriteError (w , r , err )
@@ -566,23 +566,23 @@ type adminPatchIdentity struct {
566
566
//
567
567
// Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
568
568
//
569
- // Consumes:
570
- // - application/json
569
+ // Consumes:
570
+ // - application/json
571
571
//
572
- // Produces:
573
- // - application/json
572
+ // Produces:
573
+ // - application/json
574
574
//
575
- // Schemes: http, https
575
+ // Schemes: http, https
576
576
//
577
- // Security:
578
- // oryAccessToken:
577
+ // Security:
578
+ // oryAccessToken:
579
579
//
580
- // Responses:
581
- // 200: identity
582
- // 400: jsonError
583
- // 404: jsonError
584
- // 409: jsonError
585
- // 500: jsonError
580
+ // Responses:
581
+ // 200: identity
582
+ // 400: jsonError
583
+ // 404: jsonError
584
+ // 409: jsonError
585
+ // 500: jsonError
586
586
func (h * Handler ) patch (w http.ResponseWriter , r * http.Request , ps httprouter.Params ) {
587
587
requestBody , err := io .ReadAll (r .Body )
588
588
if err != nil {
0 commit comments