mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 04:51:35 +03:00
0775c00b0d
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3658 GitOrigin-RevId: 3c644da15c92cac16356985d0fe0c6adb7001862
40 lines
1.4 KiB
YAML
40 lines
1.4 KiB
YAML
- 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: {} |