Skip to content

Commit

Permalink
Improve graphql endpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Sep 20, 2023
1 parent f5d6ada commit ca85d1c
Show file tree
Hide file tree
Showing 3 changed files with 656 additions and 36 deletions.
238 changes: 226 additions & 12 deletions fern/openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -9157,31 +9157,138 @@
"x-position": 0,
"x-fern-sdk-variable": "appName"
},
{
"name": "query",
"in": "query",
"description": "The query string.",
"schema": {
"type": "string"
},
"x-position": 1
},
{
"name": "operationName",
"in": "query",
"description": "The optional operation name.",
"schema": {
"type": "string",
"nullable": true
},
"x-position": 2
},
{
"name": "variables",
"in": "query",
"description": "The optional variables.",
"schema": {
"type": "string",
"nullable": true
},
"x-position": 3
},
{
"name": "X-Unpublished",
"in": "header",
"description": "Return unpublished content items.",
"schema": {
"type": "boolean"
},
"x-position": 1
"x-position": 4
}
],
"responses": {
"200": {
"description": "Contents returned or mutated.",
"content": {
"application/octet-stream": {
"application/json": {
"schema": {}
}
}
},
"404": {
"description": "App not found."
},
"500": {
"description": "Operation failed.",
"content": {
"application/json": {
"schema": {
"type": "string",
"format": "binary"
"$ref": "#/components/schemas/ErrorDto"
}
}
}
}
},
"security": [
{
"squidex-oauth-auth": []
}
],
"x-fern-sdk-group-name": "contents",
"x-fern-sdk-method-name": "getGraphQL"
},
"post": {
"tags": [
"Contents"
],
"summary": "GraphQL endpoint.",
"description": "You can read the generated documentation for your app at /api/content/{appName}/docs.",
"operationId": "ContentsShared_PostGraphQL",
"parameters": [
{
"name": "app",
"in": "path",
"required": true,
"description": "The name of the app.",
"schema": {
"type": "string"
},
"x-position": 0,
"x-fern-sdk-variable": "appName"
},
{
"name": "X-Unpublished",
"in": "header",
"description": "Return unpublished content items.",
"schema": {
"type": "boolean"
},
"x-position": 2
}
],
"requestBody": {
"x-name": "request",
"description": "The request object.",
"content": {
"application/json": {
"schema": {}
}
},
"required": true,
"x-position": 1
},
"responses": {
"200": {
"description": "Contents returned or mutated.",
"content": {
"application/json": {
"schema": {}
}
}
},
"404": {
"description": "App not found."
},
"400": {
"description": "Validation error.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorDto"
}
}
}
},
"500": {
"description": "Operation failed.",
"content": {
Expand All @@ -9199,17 +9306,17 @@
}
],
"x-fern-sdk-group-name": "contents",
"x-fern-sdk-method-name": "getGraphQL"
"x-fern-sdk-method-name": "postGraphQL"
}
},
"/api/content/{app}/graphql/batch": {
"get": {
"tags": [
"Contents"
],
"summary": "GraphQL endpoint.",
"summary": "GraphQL batch endpoint.",
"description": "You can read the generated documentation for your app at /api/content/{appName}/docs.",
"operationId": "ContentsShared_GetGraphQL2",
"operationId": "ContentsShared_GetGraphQLBatch",
"parameters": [
{
"name": "app",
Expand All @@ -9222,31 +9329,138 @@
"x-position": 0,
"x-fern-sdk-variable": "appName"
},
{
"name": "query",
"in": "query",
"description": "The query string.",
"schema": {
"type": "string"
},
"x-position": 1
},
{
"name": "operationName",
"in": "query",
"description": "The optional operation name.",
"schema": {
"type": "string",
"nullable": true
},
"x-position": 2
},
{
"name": "variables",
"in": "query",
"description": "The optional variables.",
"schema": {
"type": "string",
"nullable": true
},
"x-position": 3
},
{
"name": "X-Unpublished",
"in": "header",
"description": "Return unpublished content items.",
"schema": {
"type": "boolean"
},
"x-position": 1
"x-position": 4
}
],
"responses": {
"200": {
"description": "Contents returned or mutated.",
"content": {
"application/octet-stream": {
"application/json": {
"schema": {}
}
}
},
"404": {
"description": "App not found."
},
"500": {
"description": "Operation failed.",
"content": {
"application/json": {
"schema": {
"type": "string",
"format": "binary"
"$ref": "#/components/schemas/ErrorDto"
}
}
}
}
},
"security": [
{
"squidex-oauth-auth": []
}
],
"x-fern-sdk-group-name": "contents",
"x-fern-sdk-method-name": "getGraphQLBatch"
},
"post": {
"tags": [
"Contents"
],
"summary": "GraphQL batch endpoint.",
"description": "You can read the generated documentation for your app at /api/content/{appName}/docs.",
"operationId": "ContentsShared_PostGraphQLBatch",
"parameters": [
{
"name": "app",
"in": "path",
"required": true,
"description": "The name of the app.",
"schema": {
"type": "string"
},
"x-position": 0,
"x-fern-sdk-variable": "appName"
},
{
"name": "X-Unpublished",
"in": "header",
"description": "Return unpublished content items.",
"schema": {
"type": "boolean"
},
"x-position": 2
}
],
"requestBody": {
"x-name": "request",
"description": "The request object.",
"content": {
"application/json": {
"schema": {}
}
},
"required": true,
"x-position": 1
},
"responses": {
"200": {
"description": "Contents returned or mutated.",
"content": {
"application/json": {
"schema": {}
}
}
},
"404": {
"description": "App not found."
},
"400": {
"description": "Validation error.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorDto"
}
}
}
},
"500": {
"description": "Operation failed.",
"content": {
Expand All @@ -9264,7 +9478,7 @@
}
],
"x-fern-sdk-group-name": "contents",
"x-fern-sdk-method-name": "getGraphQL2"
"x-fern-sdk-method-name": "postGraphQLBatch"
}
},
"/api/content/{app}": {
Expand Down
Loading

0 comments on commit ca85d1c

Please sign in to comment.