{"id":47865126,"url":"https://github.com/mockzilla/connexions-codegen-template","last_synced_at":"2026-04-11T17:08:38.977Z","repository":{"id":347873416,"uuid":"1195514222","full_name":"mockzilla/connexions-codegen-template","owner":"mockzilla","description":"Generate a Go mock server from OpenAPI specs with Connexions","archived":false,"fork":false,"pushed_at":"2026-04-03T22:29:28.000Z","size":18572,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T00:33:05.209Z","etag":null,"topics":["api-server","codegen","mocks","mocks-server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mockzilla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-29T18:56:27.000Z","updated_at":"2026-04-03T22:29:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mockzilla/connexions-codegen-template","commit_stats":null,"previous_names":["mockzilla/connexions-codegen-template"],"tags_count":1,"template":true,"template_full_name":null,"purl":"pkg:github/mockzilla/connexions-codegen-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockzilla%2Fconnexions-codegen-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockzilla%2Fconnexions-codegen-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockzilla%2Fconnexions-codegen-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockzilla%2Fconnexions-codegen-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mockzilla","download_url":"https://codeload.github.com/mockzilla/connexions-codegen-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockzilla%2Fconnexions-codegen-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31687969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-server","codegen","mocks","mocks-server"],"created_at":"2026-04-04T00:05:30.214Z","updated_at":"2026-04-11T17:08:38.954Z","avatar_url":"https://github.com/mockzilla.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Connexions Codegen Template\n\nGenerate a Go mock server from OpenAPI specs with [Connexions](https://github.com/mockzilla/connexions).\n\nEach service is a Go package with generated handlers, embedded OpenAPI specs, and optional custom logic.\nIncludes an API Explorer UI at `/api-explorer`.\n\n## Quick start\n\n1. Click [**Use this template**](https://github.com/mockzilla/connexions-codegen-template/generate) to create your own repository\n2. Add services (see below)\n3. Regenerate and discover:\n   ```bash\n   make generate \u0026\u0026 make discover\n   ```\n4. Push to main - binaries for Linux, macOS, and Windows are built automatically and published to **Releases**\n\n## Adding services\n\n### From an OpenAPI spec\n\n```bash\nmake service name=my-api\n```\n\nThis creates `pkg/my_api/` with a scaffold. Replace `pkg/my_api/setup/openapi.yml` with your spec, then run:\n\n```bash\nmake generate \u0026\u0026 make discover\n```\n\n### From static responses\n\n```bash\nmake service-from-static name=my-api\n```\n\nAdd response files under `pkg/my_api/setup/data/` organized by method and path:\n\n```\npkg/my_api/setup/data/\n  get/\n    users/\n      index.json            -\u003e GET /users\n    users/{id}/\n      index.json            -\u003e GET /users/{id}\n  post/\n    users/\n      index.json            -\u003e POST /users\n```\n\nThen regenerate:\n\n```bash\nmake generate \u0026\u0026 make discover\n```\n\n## Service structure\n\nEach service lives in `pkg/{service_name}/` with:\n\n```\npkg/petstore/\n  setup/\n    openapi.yml             # OpenAPI specification\n    config.yml              # Latency, errors, upstream, caching\n    codegen.yml             # Code generation settings\n    context.yml             # Custom values for mock data\n  generate.go               # go:generate directive\n  gen.go                    # Generated handler (do not edit)\n  service.go                # Custom logic (optional overrides)\n```\n\n## API Explorer UI\n\nThe built-in UI is available at `/` (configurable in `resources/data/app.yml`).\nIt lets you browse services, view specs, test endpoints, and inspect request/response history.\n\n## Local development\n\n```bash\nmake build\n.build/server/server\n```\n\nSee the [Connexions docs](https://github.com/mockzilla/connexions) for more options.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmockzilla%2Fconnexions-codegen-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmockzilla%2Fconnexions-codegen-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmockzilla%2Fconnexions-codegen-template/lists"}