graphql-engine/server/tests-py/queries/endpoints/endpoint_empty_path_segment.yaml
Abby Sassel 3ba5d1e540 server: include more detail in inconsistent metadata error messages (fix #6684)
GitOrigin-RevId: 1a0d8fa2b465320e9ab4ea43259d0e8d92364473
2021-05-19 05:02:53 +00:00

33 lines
765 B
YAML

description: Tries to create an endpoint with empty path component
url: /v1/query
status: 400
response:
internal:
- definition:
definition:
query:
collection_name: test_collection
query_name: simple_query
url: foo//bar
methods:
- GET
name: foo
comment:
reason: "Empty segments or unnamed variables are not allowed: foo//bar"
name: endpoint foo
type: endpoint
path: $.args
error: cannot continue due to new inconsistent metadata
code: unexpected
query:
type: create_rest_endpoint
args:
url: "foo//bar"
name: foo
methods:
- GET
definition:
query:
collection_name: test_collection
query_name: simple_query