@snokam/mcp-api 2.38.0 → 2.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/specs/production/sales.json +1 -1
- package/specs/production/sanity.json +153 -23
- package/specs/test/sales.json +1 -1
- package/specs/test/sanity.json +153 -23
package/package.json
CHANGED
|
@@ -30436,6 +30436,13 @@
|
|
|
30436
30436
|
"telephone": {
|
|
30437
30437
|
"type": "string"
|
|
30438
30438
|
},
|
|
30439
|
+
"track": {
|
|
30440
|
+
"type": "string",
|
|
30441
|
+
"enum": [
|
|
30442
|
+
"developer",
|
|
30443
|
+
"data_engineer"
|
|
30444
|
+
]
|
|
30445
|
+
},
|
|
30439
30446
|
"fromApplication": {
|
|
30440
30447
|
"type": "boolean"
|
|
30441
30448
|
},
|
|
@@ -30580,6 +30587,15 @@
|
|
|
30580
30587
|
"type": "boolean",
|
|
30581
30588
|
"nullable": true
|
|
30582
30589
|
},
|
|
30590
|
+
"track": {
|
|
30591
|
+
"type": "string",
|
|
30592
|
+
"enum": [
|
|
30593
|
+
"developer",
|
|
30594
|
+
"data_engineer",
|
|
30595
|
+
null
|
|
30596
|
+
],
|
|
30597
|
+
"nullable": true
|
|
30598
|
+
},
|
|
30583
30599
|
"applicationLetter": {
|
|
30584
30600
|
"properties": {
|
|
30585
30601
|
"sanityType": {
|
|
@@ -49838,6 +49854,7 @@
|
|
|
49838
49854
|
}
|
|
49839
49855
|
}
|
|
49840
49856
|
},
|
|
49857
|
+
"description": "Returns the published article list.\n\n`includeInactive=true` drops the `active == true` filter so\nadmins can see articles they've taken offline (\"Ikke live\").\nCallers decide whether to request it based on the viewer's\nsession — the public blog route leaves it false, admin routes\npass true.",
|
|
49841
49858
|
"tags": [
|
|
49842
49859
|
"Articles"
|
|
49843
49860
|
],
|
|
@@ -49866,6 +49883,15 @@
|
|
|
49866
49883
|
"default": false,
|
|
49867
49884
|
"type": "boolean"
|
|
49868
49885
|
}
|
|
49886
|
+
},
|
|
49887
|
+
{
|
|
49888
|
+
"in": "query",
|
|
49889
|
+
"name": "includeInactive",
|
|
49890
|
+
"required": false,
|
|
49891
|
+
"schema": {
|
|
49892
|
+
"default": false,
|
|
49893
|
+
"type": "boolean"
|
|
49894
|
+
}
|
|
49869
49895
|
}
|
|
49870
49896
|
]
|
|
49871
49897
|
}
|
|
@@ -49920,6 +49946,7 @@
|
|
|
49920
49946
|
}
|
|
49921
49947
|
}
|
|
49922
49948
|
},
|
|
49949
|
+
"description": "Single published article by slug or id.\n\n`includeInactive=true` removes the `active == true` requirement\nfrom the slug-match path so admins can open \"Ikke live\"\narticles by URL. Without it, slug lookups only return live\narticles (public behaviour). Id lookups are unaffected either\nway — if the caller already knows the sanity id, active is\nimmaterial.",
|
|
49923
49950
|
"tags": [
|
|
49924
49951
|
"Articles"
|
|
49925
49952
|
],
|
|
@@ -49956,6 +49983,15 @@
|
|
|
49956
49983
|
"default": false,
|
|
49957
49984
|
"type": "boolean"
|
|
49958
49985
|
}
|
|
49986
|
+
},
|
|
49987
|
+
{
|
|
49988
|
+
"in": "query",
|
|
49989
|
+
"name": "includeInactive",
|
|
49990
|
+
"required": false,
|
|
49991
|
+
"schema": {
|
|
49992
|
+
"default": false,
|
|
49993
|
+
"type": "boolean"
|
|
49994
|
+
}
|
|
49959
49995
|
}
|
|
49960
49996
|
]
|
|
49961
49997
|
},
|
|
@@ -50005,21 +50041,22 @@
|
|
|
50005
50041
|
}
|
|
50006
50042
|
}
|
|
50007
50043
|
},
|
|
50008
|
-
"/v1.0/articles/
|
|
50044
|
+
"/v1.0/articles/all": {
|
|
50009
50045
|
"get": {
|
|
50010
|
-
"operationId": "
|
|
50046
|
+
"operationId": "GetAllPublishedArticles",
|
|
50011
50047
|
"responses": {
|
|
50012
50048
|
"200": {
|
|
50013
50049
|
"description": "Ok",
|
|
50014
50050
|
"content": {
|
|
50015
50051
|
"application/json": {
|
|
50016
50052
|
"schema": {
|
|
50017
|
-
"$ref": "#/components/schemas/
|
|
50053
|
+
"$ref": "#/components/schemas/GetArticlesResult"
|
|
50018
50054
|
}
|
|
50019
50055
|
}
|
|
50020
50056
|
}
|
|
50021
50057
|
}
|
|
50022
50058
|
},
|
|
50059
|
+
"description": "Every published article regardless of the `active` flag. Used by\nthe admin list so editors can see articles they've taken offline\n(\"Ikke live\"). Public callers should stay on `GetArticles`,\nwhich filters to `active == true`.",
|
|
50023
50060
|
"tags": [
|
|
50024
50061
|
"Articles"
|
|
50025
50062
|
],
|
|
@@ -50031,20 +50068,12 @@
|
|
|
50031
50068
|
}
|
|
50032
50069
|
],
|
|
50033
50070
|
"parameters": [
|
|
50034
|
-
{
|
|
50035
|
-
"in": "path",
|
|
50036
|
-
"name": "employeeId",
|
|
50037
|
-
"required": true,
|
|
50038
|
-
"schema": {
|
|
50039
|
-
"type": "string"
|
|
50040
|
-
}
|
|
50041
|
-
},
|
|
50042
50071
|
{
|
|
50043
50072
|
"in": "query",
|
|
50044
50073
|
"name": "useCache",
|
|
50045
50074
|
"required": false,
|
|
50046
50075
|
"schema": {
|
|
50047
|
-
"default":
|
|
50076
|
+
"default": false,
|
|
50048
50077
|
"type": "boolean"
|
|
50049
50078
|
}
|
|
50050
50079
|
},
|
|
@@ -50060,22 +50089,22 @@
|
|
|
50060
50089
|
]
|
|
50061
50090
|
}
|
|
50062
50091
|
},
|
|
50063
|
-
"/v1.0/articles/
|
|
50092
|
+
"/v1.0/articles/drafts": {
|
|
50064
50093
|
"get": {
|
|
50065
|
-
"operationId": "
|
|
50094
|
+
"operationId": "GetDraftOnlyArticles",
|
|
50066
50095
|
"responses": {
|
|
50067
50096
|
"200": {
|
|
50068
50097
|
"description": "Ok",
|
|
50069
50098
|
"content": {
|
|
50070
50099
|
"application/json": {
|
|
50071
50100
|
"schema": {
|
|
50072
|
-
"$ref": "#/components/schemas/
|
|
50101
|
+
"$ref": "#/components/schemas/GetArticlesResult"
|
|
50073
50102
|
}
|
|
50074
50103
|
}
|
|
50075
50104
|
}
|
|
50076
50105
|
}
|
|
50077
50106
|
},
|
|
50078
|
-
"description": "
|
|
50107
|
+
"description": "Drafts with no published counterpart. Used by the admin list so\nauthors can resume unfinished articles. Same projection as\n`GetArticles`, so the list UI can render both uniformly and only\ntag the draft rows with an \"Utkast\" badge.\n\nDedup is done here (not in GROQ): strip the 7-char `drafts.`\nprefix from each draft's _id and filter out any that have a\nmatching document in the published set.",
|
|
50079
50108
|
"tags": [
|
|
50080
50109
|
"Articles"
|
|
50081
50110
|
],
|
|
@@ -50088,17 +50117,25 @@
|
|
|
50088
50117
|
],
|
|
50089
50118
|
"parameters": [
|
|
50090
50119
|
{
|
|
50091
|
-
"in": "
|
|
50092
|
-
"name": "
|
|
50093
|
-
"required":
|
|
50120
|
+
"in": "query",
|
|
50121
|
+
"name": "useCache",
|
|
50122
|
+
"required": false,
|
|
50094
50123
|
"schema": {
|
|
50095
|
-
"
|
|
50124
|
+
"default": false,
|
|
50125
|
+
"type": "boolean"
|
|
50126
|
+
}
|
|
50127
|
+
},
|
|
50128
|
+
{
|
|
50129
|
+
"in": "query",
|
|
50130
|
+
"name": "useCdn",
|
|
50131
|
+
"required": false,
|
|
50132
|
+
"schema": {
|
|
50133
|
+
"default": false,
|
|
50134
|
+
"type": "boolean"
|
|
50096
50135
|
}
|
|
50097
50136
|
}
|
|
50098
50137
|
]
|
|
50099
|
-
}
|
|
50100
|
-
},
|
|
50101
|
-
"/v1.0/articles/drafts": {
|
|
50138
|
+
},
|
|
50102
50139
|
"post": {
|
|
50103
50140
|
"operationId": "CreateDraft",
|
|
50104
50141
|
"responses": {
|
|
@@ -50137,6 +50174,99 @@
|
|
|
50137
50174
|
}
|
|
50138
50175
|
}
|
|
50139
50176
|
},
|
|
50177
|
+
"/v1.0/articles/author/{employeeId}": {
|
|
50178
|
+
"get": {
|
|
50179
|
+
"operationId": "GetArticlesByAuthor",
|
|
50180
|
+
"responses": {
|
|
50181
|
+
"200": {
|
|
50182
|
+
"description": "Ok",
|
|
50183
|
+
"content": {
|
|
50184
|
+
"application/json": {
|
|
50185
|
+
"schema": {
|
|
50186
|
+
"$ref": "#/components/schemas/GetArticlesByAuthorResult"
|
|
50187
|
+
}
|
|
50188
|
+
}
|
|
50189
|
+
}
|
|
50190
|
+
}
|
|
50191
|
+
},
|
|
50192
|
+
"tags": [
|
|
50193
|
+
"Articles"
|
|
50194
|
+
],
|
|
50195
|
+
"security": [
|
|
50196
|
+
{
|
|
50197
|
+
"Implicit": [
|
|
50198
|
+
"api://3358ac8e-681e-4aeb-bfbf-bb008913c423/.default"
|
|
50199
|
+
]
|
|
50200
|
+
}
|
|
50201
|
+
],
|
|
50202
|
+
"parameters": [
|
|
50203
|
+
{
|
|
50204
|
+
"in": "path",
|
|
50205
|
+
"name": "employeeId",
|
|
50206
|
+
"required": true,
|
|
50207
|
+
"schema": {
|
|
50208
|
+
"type": "string"
|
|
50209
|
+
}
|
|
50210
|
+
},
|
|
50211
|
+
{
|
|
50212
|
+
"in": "query",
|
|
50213
|
+
"name": "useCache",
|
|
50214
|
+
"required": false,
|
|
50215
|
+
"schema": {
|
|
50216
|
+
"default": true,
|
|
50217
|
+
"type": "boolean"
|
|
50218
|
+
}
|
|
50219
|
+
},
|
|
50220
|
+
{
|
|
50221
|
+
"in": "query",
|
|
50222
|
+
"name": "useCdn",
|
|
50223
|
+
"required": false,
|
|
50224
|
+
"schema": {
|
|
50225
|
+
"default": false,
|
|
50226
|
+
"type": "boolean"
|
|
50227
|
+
}
|
|
50228
|
+
}
|
|
50229
|
+
]
|
|
50230
|
+
}
|
|
50231
|
+
},
|
|
50232
|
+
"/v1.0/articles/{slugOrId}/draft-status": {
|
|
50233
|
+
"get": {
|
|
50234
|
+
"operationId": "GetArticleWithDraft",
|
|
50235
|
+
"responses": {
|
|
50236
|
+
"200": {
|
|
50237
|
+
"description": "Ok",
|
|
50238
|
+
"content": {
|
|
50239
|
+
"application/json": {
|
|
50240
|
+
"schema": {
|
|
50241
|
+
"$ref": "#/components/schemas/GetArticleWithDraftResult"
|
|
50242
|
+
}
|
|
50243
|
+
}
|
|
50244
|
+
}
|
|
50245
|
+
}
|
|
50246
|
+
},
|
|
50247
|
+
"description": "Read both states at once. Returns all `null`s if neither exists.\nAccepts a published id or a slug; draft lookup is by id, so we\nresolve slug→id via the published GROQ query first. Brand-new\ndrafts (no published counterpart) can be fetched by passing the\nbare `drafts.<id>` form or the plain `<id>` half — the handler\ntries both.",
|
|
50248
|
+
"tags": [
|
|
50249
|
+
"Articles"
|
|
50250
|
+
],
|
|
50251
|
+
"security": [
|
|
50252
|
+
{
|
|
50253
|
+
"Implicit": [
|
|
50254
|
+
"api://3358ac8e-681e-4aeb-bfbf-bb008913c423/.default"
|
|
50255
|
+
]
|
|
50256
|
+
}
|
|
50257
|
+
],
|
|
50258
|
+
"parameters": [
|
|
50259
|
+
{
|
|
50260
|
+
"in": "path",
|
|
50261
|
+
"name": "slugOrId",
|
|
50262
|
+
"required": true,
|
|
50263
|
+
"schema": {
|
|
50264
|
+
"type": "string"
|
|
50265
|
+
}
|
|
50266
|
+
}
|
|
50267
|
+
]
|
|
50268
|
+
}
|
|
50269
|
+
},
|
|
50140
50270
|
"/v1.0/articles/{slugOrId}/draft": {
|
|
50141
50271
|
"patch": {
|
|
50142
50272
|
"operationId": "PatchDraft",
|
package/specs/test/sales.json
CHANGED
package/specs/test/sanity.json
CHANGED
|
@@ -30436,6 +30436,13 @@
|
|
|
30436
30436
|
"telephone": {
|
|
30437
30437
|
"type": "string"
|
|
30438
30438
|
},
|
|
30439
|
+
"track": {
|
|
30440
|
+
"type": "string",
|
|
30441
|
+
"enum": [
|
|
30442
|
+
"developer",
|
|
30443
|
+
"data_engineer"
|
|
30444
|
+
]
|
|
30445
|
+
},
|
|
30439
30446
|
"fromApplication": {
|
|
30440
30447
|
"type": "boolean"
|
|
30441
30448
|
},
|
|
@@ -30580,6 +30587,15 @@
|
|
|
30580
30587
|
"type": "boolean",
|
|
30581
30588
|
"nullable": true
|
|
30582
30589
|
},
|
|
30590
|
+
"track": {
|
|
30591
|
+
"type": "string",
|
|
30592
|
+
"enum": [
|
|
30593
|
+
"developer",
|
|
30594
|
+
"data_engineer",
|
|
30595
|
+
null
|
|
30596
|
+
],
|
|
30597
|
+
"nullable": true
|
|
30598
|
+
},
|
|
30583
30599
|
"applicationLetter": {
|
|
30584
30600
|
"properties": {
|
|
30585
30601
|
"sanityType": {
|
|
@@ -49838,6 +49854,7 @@
|
|
|
49838
49854
|
}
|
|
49839
49855
|
}
|
|
49840
49856
|
},
|
|
49857
|
+
"description": "Returns the published article list.\n\n`includeInactive=true` drops the `active == true` filter so\nadmins can see articles they've taken offline (\"Ikke live\").\nCallers decide whether to request it based on the viewer's\nsession — the public blog route leaves it false, admin routes\npass true.",
|
|
49841
49858
|
"tags": [
|
|
49842
49859
|
"Articles"
|
|
49843
49860
|
],
|
|
@@ -49866,6 +49883,15 @@
|
|
|
49866
49883
|
"default": false,
|
|
49867
49884
|
"type": "boolean"
|
|
49868
49885
|
}
|
|
49886
|
+
},
|
|
49887
|
+
{
|
|
49888
|
+
"in": "query",
|
|
49889
|
+
"name": "includeInactive",
|
|
49890
|
+
"required": false,
|
|
49891
|
+
"schema": {
|
|
49892
|
+
"default": false,
|
|
49893
|
+
"type": "boolean"
|
|
49894
|
+
}
|
|
49869
49895
|
}
|
|
49870
49896
|
]
|
|
49871
49897
|
}
|
|
@@ -49920,6 +49946,7 @@
|
|
|
49920
49946
|
}
|
|
49921
49947
|
}
|
|
49922
49948
|
},
|
|
49949
|
+
"description": "Single published article by slug or id.\n\n`includeInactive=true` removes the `active == true` requirement\nfrom the slug-match path so admins can open \"Ikke live\"\narticles by URL. Without it, slug lookups only return live\narticles (public behaviour). Id lookups are unaffected either\nway — if the caller already knows the sanity id, active is\nimmaterial.",
|
|
49923
49950
|
"tags": [
|
|
49924
49951
|
"Articles"
|
|
49925
49952
|
],
|
|
@@ -49956,6 +49983,15 @@
|
|
|
49956
49983
|
"default": false,
|
|
49957
49984
|
"type": "boolean"
|
|
49958
49985
|
}
|
|
49986
|
+
},
|
|
49987
|
+
{
|
|
49988
|
+
"in": "query",
|
|
49989
|
+
"name": "includeInactive",
|
|
49990
|
+
"required": false,
|
|
49991
|
+
"schema": {
|
|
49992
|
+
"default": false,
|
|
49993
|
+
"type": "boolean"
|
|
49994
|
+
}
|
|
49959
49995
|
}
|
|
49960
49996
|
]
|
|
49961
49997
|
},
|
|
@@ -50005,21 +50041,22 @@
|
|
|
50005
50041
|
}
|
|
50006
50042
|
}
|
|
50007
50043
|
},
|
|
50008
|
-
"/v1.0/articles/
|
|
50044
|
+
"/v1.0/articles/all": {
|
|
50009
50045
|
"get": {
|
|
50010
|
-
"operationId": "
|
|
50046
|
+
"operationId": "GetAllPublishedArticles",
|
|
50011
50047
|
"responses": {
|
|
50012
50048
|
"200": {
|
|
50013
50049
|
"description": "Ok",
|
|
50014
50050
|
"content": {
|
|
50015
50051
|
"application/json": {
|
|
50016
50052
|
"schema": {
|
|
50017
|
-
"$ref": "#/components/schemas/
|
|
50053
|
+
"$ref": "#/components/schemas/GetArticlesResult"
|
|
50018
50054
|
}
|
|
50019
50055
|
}
|
|
50020
50056
|
}
|
|
50021
50057
|
}
|
|
50022
50058
|
},
|
|
50059
|
+
"description": "Every published article regardless of the `active` flag. Used by\nthe admin list so editors can see articles they've taken offline\n(\"Ikke live\"). Public callers should stay on `GetArticles`,\nwhich filters to `active == true`.",
|
|
50023
50060
|
"tags": [
|
|
50024
50061
|
"Articles"
|
|
50025
50062
|
],
|
|
@@ -50031,20 +50068,12 @@
|
|
|
50031
50068
|
}
|
|
50032
50069
|
],
|
|
50033
50070
|
"parameters": [
|
|
50034
|
-
{
|
|
50035
|
-
"in": "path",
|
|
50036
|
-
"name": "employeeId",
|
|
50037
|
-
"required": true,
|
|
50038
|
-
"schema": {
|
|
50039
|
-
"type": "string"
|
|
50040
|
-
}
|
|
50041
|
-
},
|
|
50042
50071
|
{
|
|
50043
50072
|
"in": "query",
|
|
50044
50073
|
"name": "useCache",
|
|
50045
50074
|
"required": false,
|
|
50046
50075
|
"schema": {
|
|
50047
|
-
"default":
|
|
50076
|
+
"default": false,
|
|
50048
50077
|
"type": "boolean"
|
|
50049
50078
|
}
|
|
50050
50079
|
},
|
|
@@ -50060,22 +50089,22 @@
|
|
|
50060
50089
|
]
|
|
50061
50090
|
}
|
|
50062
50091
|
},
|
|
50063
|
-
"/v1.0/articles/
|
|
50092
|
+
"/v1.0/articles/drafts": {
|
|
50064
50093
|
"get": {
|
|
50065
|
-
"operationId": "
|
|
50094
|
+
"operationId": "GetDraftOnlyArticles",
|
|
50066
50095
|
"responses": {
|
|
50067
50096
|
"200": {
|
|
50068
50097
|
"description": "Ok",
|
|
50069
50098
|
"content": {
|
|
50070
50099
|
"application/json": {
|
|
50071
50100
|
"schema": {
|
|
50072
|
-
"$ref": "#/components/schemas/
|
|
50101
|
+
"$ref": "#/components/schemas/GetArticlesResult"
|
|
50073
50102
|
}
|
|
50074
50103
|
}
|
|
50075
50104
|
}
|
|
50076
50105
|
}
|
|
50077
50106
|
},
|
|
50078
|
-
"description": "
|
|
50107
|
+
"description": "Drafts with no published counterpart. Used by the admin list so\nauthors can resume unfinished articles. Same projection as\n`GetArticles`, so the list UI can render both uniformly and only\ntag the draft rows with an \"Utkast\" badge.\n\nDedup is done here (not in GROQ): strip the 7-char `drafts.`\nprefix from each draft's _id and filter out any that have a\nmatching document in the published set.",
|
|
50079
50108
|
"tags": [
|
|
50080
50109
|
"Articles"
|
|
50081
50110
|
],
|
|
@@ -50088,17 +50117,25 @@
|
|
|
50088
50117
|
],
|
|
50089
50118
|
"parameters": [
|
|
50090
50119
|
{
|
|
50091
|
-
"in": "
|
|
50092
|
-
"name": "
|
|
50093
|
-
"required":
|
|
50120
|
+
"in": "query",
|
|
50121
|
+
"name": "useCache",
|
|
50122
|
+
"required": false,
|
|
50094
50123
|
"schema": {
|
|
50095
|
-
"
|
|
50124
|
+
"default": false,
|
|
50125
|
+
"type": "boolean"
|
|
50126
|
+
}
|
|
50127
|
+
},
|
|
50128
|
+
{
|
|
50129
|
+
"in": "query",
|
|
50130
|
+
"name": "useCdn",
|
|
50131
|
+
"required": false,
|
|
50132
|
+
"schema": {
|
|
50133
|
+
"default": false,
|
|
50134
|
+
"type": "boolean"
|
|
50096
50135
|
}
|
|
50097
50136
|
}
|
|
50098
50137
|
]
|
|
50099
|
-
}
|
|
50100
|
-
},
|
|
50101
|
-
"/v1.0/articles/drafts": {
|
|
50138
|
+
},
|
|
50102
50139
|
"post": {
|
|
50103
50140
|
"operationId": "CreateDraft",
|
|
50104
50141
|
"responses": {
|
|
@@ -50137,6 +50174,99 @@
|
|
|
50137
50174
|
}
|
|
50138
50175
|
}
|
|
50139
50176
|
},
|
|
50177
|
+
"/v1.0/articles/author/{employeeId}": {
|
|
50178
|
+
"get": {
|
|
50179
|
+
"operationId": "GetArticlesByAuthor",
|
|
50180
|
+
"responses": {
|
|
50181
|
+
"200": {
|
|
50182
|
+
"description": "Ok",
|
|
50183
|
+
"content": {
|
|
50184
|
+
"application/json": {
|
|
50185
|
+
"schema": {
|
|
50186
|
+
"$ref": "#/components/schemas/GetArticlesByAuthorResult"
|
|
50187
|
+
}
|
|
50188
|
+
}
|
|
50189
|
+
}
|
|
50190
|
+
}
|
|
50191
|
+
},
|
|
50192
|
+
"tags": [
|
|
50193
|
+
"Articles"
|
|
50194
|
+
],
|
|
50195
|
+
"security": [
|
|
50196
|
+
{
|
|
50197
|
+
"Implicit": [
|
|
50198
|
+
"api://5dc55e32-6742-4fe9-b8b6-581cf56af144/.default"
|
|
50199
|
+
]
|
|
50200
|
+
}
|
|
50201
|
+
],
|
|
50202
|
+
"parameters": [
|
|
50203
|
+
{
|
|
50204
|
+
"in": "path",
|
|
50205
|
+
"name": "employeeId",
|
|
50206
|
+
"required": true,
|
|
50207
|
+
"schema": {
|
|
50208
|
+
"type": "string"
|
|
50209
|
+
}
|
|
50210
|
+
},
|
|
50211
|
+
{
|
|
50212
|
+
"in": "query",
|
|
50213
|
+
"name": "useCache",
|
|
50214
|
+
"required": false,
|
|
50215
|
+
"schema": {
|
|
50216
|
+
"default": true,
|
|
50217
|
+
"type": "boolean"
|
|
50218
|
+
}
|
|
50219
|
+
},
|
|
50220
|
+
{
|
|
50221
|
+
"in": "query",
|
|
50222
|
+
"name": "useCdn",
|
|
50223
|
+
"required": false,
|
|
50224
|
+
"schema": {
|
|
50225
|
+
"default": false,
|
|
50226
|
+
"type": "boolean"
|
|
50227
|
+
}
|
|
50228
|
+
}
|
|
50229
|
+
]
|
|
50230
|
+
}
|
|
50231
|
+
},
|
|
50232
|
+
"/v1.0/articles/{slugOrId}/draft-status": {
|
|
50233
|
+
"get": {
|
|
50234
|
+
"operationId": "GetArticleWithDraft",
|
|
50235
|
+
"responses": {
|
|
50236
|
+
"200": {
|
|
50237
|
+
"description": "Ok",
|
|
50238
|
+
"content": {
|
|
50239
|
+
"application/json": {
|
|
50240
|
+
"schema": {
|
|
50241
|
+
"$ref": "#/components/schemas/GetArticleWithDraftResult"
|
|
50242
|
+
}
|
|
50243
|
+
}
|
|
50244
|
+
}
|
|
50245
|
+
}
|
|
50246
|
+
},
|
|
50247
|
+
"description": "Read both states at once. Returns all `null`s if neither exists.\nAccepts a published id or a slug; draft lookup is by id, so we\nresolve slug→id via the published GROQ query first. Brand-new\ndrafts (no published counterpart) can be fetched by passing the\nbare `drafts.<id>` form or the plain `<id>` half — the handler\ntries both.",
|
|
50248
|
+
"tags": [
|
|
50249
|
+
"Articles"
|
|
50250
|
+
],
|
|
50251
|
+
"security": [
|
|
50252
|
+
{
|
|
50253
|
+
"Implicit": [
|
|
50254
|
+
"api://5dc55e32-6742-4fe9-b8b6-581cf56af144/.default"
|
|
50255
|
+
]
|
|
50256
|
+
}
|
|
50257
|
+
],
|
|
50258
|
+
"parameters": [
|
|
50259
|
+
{
|
|
50260
|
+
"in": "path",
|
|
50261
|
+
"name": "slugOrId",
|
|
50262
|
+
"required": true,
|
|
50263
|
+
"schema": {
|
|
50264
|
+
"type": "string"
|
|
50265
|
+
}
|
|
50266
|
+
}
|
|
50267
|
+
]
|
|
50268
|
+
}
|
|
50269
|
+
},
|
|
50140
50270
|
"/v1.0/articles/{slugOrId}/draft": {
|
|
50141
50271
|
"patch": {
|
|
50142
50272
|
"operationId": "PatchDraft",
|