{ "opencollection": "1.0.0", "info": { "name": "WunderGraph Cosmo Platform Analytics Subgraphs API", "version": "1.0.0" }, "items": [ { "info": { "name": "Subgraphs", "type": "folder" }, "items": [ { "info": { "name": "WunderGraph List subgraphs", "type": "http" }, "http": { "method": "GET", "url": "https://cosmo-cp.wundergraph.com/v1/subgraphs", "params": [ { "name": "namespace", "value": "", "type": "query", "description": "Filter by namespace name." }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of results to return." }, { "name": "offset", "value": "", "type": "query", "description": "Number of results to skip." } ], "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Lists all subgraphs in the organization, optionally filtered by namespace. Subgraphs are isolated GraphQL schemas that compose into federated graphs." }, { "info": { "name": "WunderGraph Create a subgraph", "type": "http" }, "http": { "method": "POST", "url": "https://cosmo-cp.wundergraph.com/v1/subgraphs", "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Creates a new subgraph within the Cosmo platform. Subgraphs are isolated GraphQL schemas that can be independently deployed and managed, providing modularity and scalability to your GraphQL APIs." }, { "info": { "name": "WunderGraph Get a subgraph", "type": "http" }, "http": { "method": "GET", "url": "https://cosmo-cp.wundergraph.com/v1/subgraphs/:name", "params": [ { "name": "name", "value": "", "type": "path", "description": "The name of the subgraph." }, { "name": "namespace", "value": "", "type": "query", "description": "The namespace of the subgraph." } ], "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Retrieves details of a specific subgraph by name." }, { "info": { "name": "WunderGraph Update a subgraph", "type": "http" }, "http": { "method": "PUT", "url": "https://cosmo-cp.wundergraph.com/v1/subgraphs/:name", "params": [ { "name": "name", "value": "", "type": "path", "description": "The name of the subgraph to update." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Updates the configuration of an existing subgraph, such as its routing URL, labels, or subscription settings." }, { "info": { "name": "WunderGraph Delete a subgraph", "type": "http" }, "http": { "method": "DELETE", "url": "https://cosmo-cp.wundergraph.com/v1/subgraphs/:name", "params": [ { "name": "name", "value": "", "type": "path", "description": "The name of the subgraph to delete." }, { "name": "namespace", "value": "", "type": "query", "description": "The namespace of the subgraph." } ], "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Deletes a subgraph from the platform. This will trigger recomposition of any federated graphs that included this subgraph." }, { "info": { "name": "WunderGraph Publish a subgraph schema", "type": "http" }, "http": { "method": "POST", "url": "https://cosmo-cp.wundergraph.com/v1/subgraphs/:name/publish", "params": [ { "name": "name", "value": "", "type": "path", "description": "The name of the subgraph to publish." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Publishes a new schema for the specified subgraph. This triggers composition checks and updates the federated graphs that include this subgraph." }, { "info": { "name": "WunderGraph Check a subgraph schema", "type": "http" }, "http": { "method": "POST", "url": "https://cosmo-cp.wundergraph.com/v1/subgraphs/:name/check", "params": [ { "name": "name", "value": "", "type": "path", "description": "The name of the subgraph to check." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Checks a subgraph schema for breaking changes and composition errors across all connected federated graphs without publishing. Used for CI/CD validation." }, { "info": { "name": "WunderGraph Fetch subgraph SDL", "type": "http" }, "http": { "method": "GET", "url": "https://cosmo-cp.wundergraph.com/v1/subgraphs/:name/fetch", "params": [ { "name": "name", "value": "", "type": "path", "description": "The name of the subgraph." }, { "name": "namespace", "value": "", "type": "query", "description": "The namespace of the subgraph." } ], "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Downloads the latest valid Schema Definition Language (SDL) of a specific subgraph." }, { "info": { "name": "WunderGraph Move a subgraph to another namespace", "type": "http" }, "http": { "method": "POST", "url": "https://cosmo-cp.wundergraph.com/v1/subgraphs/:name/move", "params": [ { "name": "name", "value": "", "type": "path", "description": "The name of the subgraph to move." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Moves a subgraph from one namespace to another." } ] } ], "bundled": true }