{"connections":[{"id":"curl-metadata","title":"curl (metadata query)","kind":"curl","language":"bash","description":"Query instance metadata against the emulated GraphQL endpoint.","template":"curl -s -X POST {{baseUrl}}/api/graphql \\\n  -H \"content-type: application/json\" \\\n  -d '{\"query\":\"{ metadata { version revision enterprise } }\"}'","body":"curl -s -X POST https://gitlab.your-instance.emulators.dev/api/graphql \\\n  -H \"content-type: application/json\" \\\n  -d '{\"query\":\"{ metadata { version revision enterprise } }\"}'"},{"id":"gitlab-env","title":"GitLab GraphQL URL (env)","kind":"env","language":"bash","description":"Point your app at the emulator instead of gitlab.com.","template":"GITLAB_GRAPHQL_URL={{baseUrl}}/api/graphql","body":"GITLAB_GRAPHQL_URL=https://gitlab.your-instance.emulators.dev/api/graphql"},{"id":"graphql-request","title":"graphql-request (TypeScript)","kind":"sdk","language":"typescript","description":"Run real GraphQL queries against the emulator with graphql-request.","template":"import { GraphQLClient, gql } from \"graphql-request\";\n\nconst client = new GraphQLClient(\"{{baseUrl}}/api/graphql\");\n\nconst data = await client.request(gql`\n  query {\n    metadata {\n      version\n      enterprise\n    }\n  }\n`);","body":"import { GraphQLClient, gql } from \"graphql-request\";\n\nconst client = new GraphQLClient(\"https://gitlab.your-instance.emulators.dev/api/graphql\");\n\nconst data = await client.request(gql`\n  query {\n    metadata {\n      version\n      enterprise\n    }\n  }\n`);"},{"id":"base-url","title":"Base URL (env)","kind":"env","language":"bash","description":"Point your SDK or app at the emulator instead of the real provider.","template":"{{SERVICE_UPPER}}_BASE_URL={{baseUrl}}","body":"GITLAB_BASE_URL=https://gitlab.your-instance.emulators.dev"},{"id":"create-credential","title":"Create a credential","kind":"curl","language":"bash","description":"Mint a working credential for this instance.","template":"curl -s -X POST {{controlBaseUrl}}/credentials \\\n  -H \"content-type: application/json\" \\\n  -d '{\"type\":\"{{defaultAuthType}}\"}'","body":"curl -s -X POST https://gitlab.your-instance.emulators.dev/_emulate/credentials \\\n  -H \"content-type: application/json\" \\\n  -d '{\"type\":\"bearer-token\"}'"},{"id":"inspect-ledger","title":"Inspect requests","kind":"curl","language":"bash","description":"Read the request ledger to validate how your app called the service.","template":"curl -s {{controlBaseUrl}}/ledger","body":"curl -s https://gitlab.your-instance.emulators.dev/_emulate/ledger"}]}