Skip to content

Commit fe34e61

Browse files
authored
Generate security headers (#316)
1 parent 627efd8 commit fe34e61

File tree

1 file changed

+44
-58
lines changed

1 file changed

+44
-58
lines changed

restapi/versions/v2.json

Lines changed: 44 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@
219219
},
220220
"/datasets": {
221221
"get": {
222+
"security": [
223+
{
224+
"Auth": []
225+
}
226+
],
222227
"description": "Get list of datasets",
223228
"tags": [
224229
"Datasets"
@@ -259,14 +264,7 @@
259264
"$ref": "#/components/responses/ForbiddenError"
260265
}
261266
},
262-
"x-axiom-preview": true,
263-
"security": [
264-
{
265-
"Auth": [
266-
"other"
267-
]
268-
}
269-
]
267+
"x-axiom-preview": true
270268
},
271269
"post": {
272270
"security": [
@@ -322,6 +320,11 @@
322320
},
323321
"/datasets/{dataset_id}": {
324322
"get": {
323+
"security": [
324+
{
325+
"Auth": []
326+
}
327+
],
325328
"description": "Get dataset by ID",
326329
"tags": [
327330
"Datasets"
@@ -356,14 +359,7 @@
356359
"$ref": "#/components/responses/NotFoundError"
357360
}
358361
},
359-
"x-axiom-preview": true,
360-
"security": [
361-
{
362-
"Auth": [
363-
"other"
364-
]
365-
}
366-
]
362+
"x-axiom-preview": true
367363
},
368364
"put": {
369365
"security": [
@@ -543,6 +539,11 @@
543539
},
544540
"/datasets/{dataset_id}/fields": {
545541
"get": {
542+
"security": [
543+
{
544+
"Auth": []
545+
}
546+
],
546547
"tags": [
547548
"datasets"
548549
],
@@ -574,18 +575,16 @@
574575
"403": {
575576
"$ref": "#/components/responses/ForbiddenError"
576577
}
577-
},
578-
"security": [
579-
{
580-
"Auth": [
581-
"other"
582-
]
583-
}
584-
]
578+
}
585579
}
586580
},
587581
"/datasets/{dataset_id}/fields/{field_id}": {
588582
"get": {
583+
"security": [
584+
{
585+
"Auth": []
586+
}
587+
],
589588
"tags": [
590589
"datasets"
591590
],
@@ -619,14 +618,7 @@
619618
}
620619
}
621620
}
622-
},
623-
"security": [
624-
{
625-
"Auth": [
626-
"other"
627-
]
628-
}
629-
]
621+
}
630622
},
631623
"put": {
632624
"security": [
@@ -684,6 +676,11 @@
684676
},
685677
"/datasets/{dataset_id}/mapfields": {
686678
"get": {
679+
"security": [
680+
{
681+
"Auth": []
682+
}
683+
],
687684
"tags": [
688685
"datasets"
689686
],
@@ -710,14 +707,7 @@
710707
}
711708
}
712709
},
713-
"x-axiom-not-suspended": true,
714-
"security": [
715-
{
716-
"Auth": [
717-
"other"
718-
]
719-
}
720-
]
710+
"x-axiom-not-suspended": true
721711
},
722712
"put": {
723713
"security": [
@@ -754,7 +744,7 @@
754744
},
755745
"responses": {
756746
"200": {
757-
"description": "A list of MapField-names",
747+
"description": "A list of map field names",
758748
"content": {
759749
"application/json": {
760750
"schema": {
@@ -2155,6 +2145,11 @@
21552145
},
21562146
"/user": {
21572147
"get": {
2148+
"security": [
2149+
{
2150+
"Auth": []
2151+
}
2152+
],
21582153
"description": "Get current user",
21592154
"tags": [
21602155
"Users"
@@ -2173,16 +2168,14 @@
21732168
}
21742169
},
21752170
"x-axiom-no-org-required": true,
2176-
"x-axiom-preview": true,
2171+
"x-axiom-preview": true
2172+
},
2173+
"put": {
21772174
"security": [
21782175
{
2179-
"Auth": [
2180-
"other"
2181-
]
2176+
"Auth": []
21822177
}
2183-
]
2184-
},
2185-
"put": {
2178+
],
21862179
"description": "Update current user",
21872180
"tags": [
21882181
"Users"
@@ -2211,14 +2204,7 @@
22112204
}
22122205
},
22132206
"x-axiom-no-org-required": true,
2214-
"x-axiom-preview": true,
2215-
"security": [
2216-
{
2217-
"Auth": [
2218-
"other"
2219-
]
2220-
}
2221-
]
2207+
"x-axiom-preview": true
22222208
}
22232209
},
22242210
"/users": {
@@ -3713,7 +3699,7 @@
37133699
}
37143700
},
37153701
"MapField": {
3716-
"description": "A mapfield, described by a name",
3702+
"description": "A map field, described by a name",
37173703
"type": "object",
37183704
"required": [
37193705
"name"
@@ -3728,7 +3714,7 @@
37283714
}
37293715
},
37303716
"MapFields": {
3731-
"description": "A list of mapfield-names",
3717+
"description": "A list of map field names",
37323718
"type": "array",
37333719
"items": {
37343720
"type": "string"

0 commit comments

Comments
 (0)