Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

WunderGraph Subgraphs API

Manage subgraphs - isolated GraphQL schemas that compose into federated graphs.

WunderGraph Subgraphs API is one of 10 APIs that WunderGraph publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 10 JSON Schema definitions.

Tagged areas include Subgraphs. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 10 JSON Schemas.

This API exposes 9 operations across 6 paths, and defines 2 schemas. It is described by OpenAPI 3.1.0, at version 1.0.0.

Requests are made against a single base URL, https://cosmo-cp.wundergraph.com.

9 operations 6 paths 2 schemas 1 DELETE3 GET4 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0.0
Server
https://cosmo-cp.wundergraph.com
Authentication
API Key
License
Resource Areas
1

Authentication & Security 1

WunderGraph Subgraphs API declares 1 security scheme for authenticating requests. An API key is passed in the header as Authorization (apiKey).

  • apiKey — API key for authenticating with the Cosmo Platform API. Obtain via Cosmo Studio or wgc CLI. Set as COSMOAPIKEY environment variable.

Paths & Operations 9

Across 6 paths, the API surfaces 9 operations — 1 DELETE, 3 GET, 4 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Subgraphs 9

Manage subgraphs - isolated GraphQL schemas that compose into federated graphs.

GET
/v1/subgraphs
WunderGraph List subgraphs
listSubgraphs 3 params → 200
POST
/v1/subgraphs
WunderGraph Create a subgraph
createSubgraph body → 200
GET
/v1/subgraphs/{name}
WunderGraph Get a subgraph
getSubgraph 2 params → 200
PUT
/v1/subgraphs/{name}
WunderGraph Update a subgraph
updateSubgraph 1 param body → 200
DELETE
/v1/subgraphs/{name}
WunderGraph Delete a subgraph
deleteSubgraph 2 params → 200
POST
/v1/subgraphs/{name}/publish
WunderGraph Publish a subgraph schema
publishSubgraph 1 param body → 200
POST
/v1/subgraphs/{name}/check
WunderGraph Check a subgraph schema
checkSubgraph 1 param body → 200
GET
/v1/subgraphs/{name}/fetch
WunderGraph Fetch subgraph SDL
fetchSubgraphSDL 2 params → 200
POST
/v1/subgraphs/{name}/move
WunderGraph Move a subgraph to another namespace
moveSubgraph 1 param body → 200

Schemas 2

The contract defines 2 schemas that model the data the API accepts and returns. The most detailed are Subgraph (11 properties), OperationResponse (2 properties). Each schema is shown below with its type and property counts.

Subgraph
object
11 properties
OperationResponse
object
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

wundergraph-subgraphs-api-openapi.yml Raw ↑

Other APIs WunderGraph publishes across the network.

WunderGraph Analytics API
WunderGraph API Keys API
WunderGraph Feature Flags API
WunderGraph Feature Subgraphs API
WunderGraph Federated Graphs API
WunderGraph Monographs API
WunderGraph Namespaces API
WunderGraph Router API
WunderGraph Schema Contracts API