expectation
create expectations from a GraphQL schema
Generates expectations from a GraphQL schema (the request body is a GraphQL SDL document or an introspection JSON result) and adds them. One expectation is created per root operation type (query / mutation / subscription); each matches any operation of that kind and synthesizes a schema-valid response per request. The optional "path" query parameter overrides the default "/graphql" request path the generated expectations match.
put/mockserver/graphql
Request
- Base URL: http://localhost:1080
- URL: http://localhost:1080/mockserver/graphql
- Auth: none declared
Query parameters
pathstring
request path the generated GraphQL expectations match (default "/graphql")
Response
expectations created from the GraphQL schema
Expectation[] required(unresolved $ref)
list of upserted expectations
Changes
No recorded changes to this operation across all 1 revision of this API.