graphql-engine/server/tests-py/queries/openapi/openapi_inconsistent_schema.yaml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.4 KiB
YAML
Raw Normal View History

- description: Call openapi json endpoint
url: /api/swagger/json
method: GET
status: 200
query:
response:
openapi: 3.0.0
info:
version: ''
title: Rest Endpoints
description: "This OpenAPI specification is automatically generated by Hasura.\n\
\nEndpoint \"wrong_endpoint\":\n\n- ⚠️ Couldn't find field random_field_name\
\ in root field query_root\n- ⚠️ Couldn't find definition for field random_col_name\
\ in test_table"
paths:
/api/rest/some_url:
get:
summary: wrong_endpoint
description: "***\nThe GraphQl query for this endpoint is:\n``` graphql\n\
query { random_field_name test_table { random_col_name } }\n```"
parameters:
- schema:
type: string
in: header
name: x-hasura-admin-secret
description: Your x-hasura-admin-secret will be used for authentication
of the API request.
responses:
'200':
content:
application/json:
schema:
properties:
test_table:
items:
type: object
type: array
nullable: false
description: Responses for GET /api/rest/some_url
components: {}