mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 21:12:09 +03:00
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: {}
|