File tree Expand file tree Collapse file tree 4 files changed +21
-3
lines changed Expand file tree Collapse file tree 4 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const docTemplate = `{
29
29
"get": {
30
30
"security": [
31
31
{
32
- "APIKey ": []
32
+ "CoderSessionToken ": []
33
33
}
34
34
],
35
35
"produces": [
@@ -427,6 +427,13 @@ const docTemplate = `{
427
427
}
428
428
}
429
429
}
430
+ },
431
+ "securityDefinitions": {
432
+ "CoderSessionToken": {
433
+ "type": "apiKey",
434
+ "name": "Coder-Session-Token",
435
+ "in": "header"
436
+ }
430
437
}
431
438
}`
432
439
Original file line number Diff line number Diff line change 21
21
"get" : {
22
22
"security" : [
23
23
{
24
- "APIKey " : []
24
+ "CoderSessionToken " : []
25
25
}
26
26
],
27
27
"produces" : [
419
419
}
420
420
}
421
421
}
422
+ },
423
+ "securityDefinitions" : {
424
+ "CoderSessionToken" : {
425
+ "type" : " apiKey" ,
426
+ "name" : " Coder-Session-Token" ,
427
+ "in" : " header"
428
+ }
422
429
}
423
430
}
Original file line number Diff line number Diff line change @@ -124,6 +124,10 @@ type Options struct {
124
124
// @license.url https://github.com/coder/coder/blob/main/LICENSE
125
125
126
126
// @BasePath /api/v2
127
+
128
+ // @securitydefinitions.apiKey CoderSessionToken
129
+ // @in header
130
+ // @name Coder-Session-Token
127
131
// New constructs a Coder API handler.
128
132
func New (options * Options ) * API {
129
133
if options == nil {
Original file line number Diff line number Diff line change 45
45
46
46
// @Summary Get workspace metadata.
47
47
// @ID get-workspace
48
- // @Security APIKey
48
+ // @Security CoderSessionToken
49
49
// @Produce json
50
50
// @Tags Workspaces
51
51
// @Param id path string true "Workspace ID"
You can’t perform that action at this time.
0 commit comments