About this endpoint
What it does
Converts the JSON document available at the provided URL into GraphQL SDL, returning the SDL inline in the response body. The request body must include a url pointing to a publicly accessible JSON resource.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | Yes | Public URL pointing to a JSON file. Must be a valid URI. The response must have a content-type including application/json, text/plain, application/octet-stream, or binary/octet-stream; or a content-disposition header / URL path that includes .json. |
Response
Returns a plain string containing the GraphQL SDL generated from the JSON at the supplied URL.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| value | String | Yes | The generated GraphQL SDL returned inline as the response body. |