{"id":51475861,"url":"https://github.com/ufukty/petstore","last_synced_at":"2026-07-06T20:33:02.489Z","repository":{"id":288291850,"uuid":"967432397","full_name":"ufukty/petstore","owner":"ufukty","description":"Demo for Gohandlers","archived":false,"fork":false,"pushed_at":"2026-01-22T15:19:19.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-10T16:33:15.122Z","etag":null,"topics":["backend","go"],"latest_commit_sha":null,"homepage":"https://gohandlers.ufukty.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ufukty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-04-16T12:54:57.000Z","updated_at":"2026-03-15T17:48:55.000Z","dependencies_parsed_at":"2025-04-16T23:24:05.153Z","dependency_job_id":"22989cf1-bf54-4396-a5f4-cfc777fa30e0","html_url":"https://github.com/ufukty/petstore","commit_stats":null,"previous_names":["ufukty/gohandlers-petstore","ufukty/petstore"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ufukty/petstore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufukty%2Fpetstore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufukty%2Fpetstore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufukty%2Fpetstore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufukty%2Fpetstore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ufukty","download_url":"https://codeload.github.com/ufukty/petstore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufukty%2Fpetstore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35205739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["backend","go"],"created_at":"2026-07-06T20:33:01.620Z","updated_at":"2026-07-06T20:33:02.481Z","avatar_url":"https://github.com/ufukty.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Petstore with Gohandlers\n\nThis repository implements a petstore example with [Gohandlers](https://github.com/ufukty/gohandlers). Click the link to learn about Gohandlers.\n\n## Understanding the files\n\nThere are user provided and Gohandlers generated files in this repository. By default Gohandlers suffixes the files it generates with `.gh.go`.\n\n### User provided files\n\n- [`main.go`](main.go) demonstrates the usage of `ListHandlers` method with `http.ServeMux`.\n\n- [`handlers/pets`](handlers/pets) directory contain [`create.go`](handlers/pets/create.go), [`delete.go`](handlers/pets/delete.go), [`get.go`](handlers/pets/get.go) and [`list.go`](handlers/pets/list.go) shows the suggested format for handler files which contain one handler, its request binding type and optionally its response binding type.\n\n- [`Makefile`](Makefile), [`handlers/pets/Makefile`](handlers/pets/Makefile) shows the gohandlers commands and exact args used in generating this example.\n\n### Gohandlers generated files\n\n- [`handlers/pets/gh.go`](handlers/pets/gh.go) contains the builder, parser and validator for request bindings; builder and writer for response bindings and path, method and reference listers for global handlers and method handlers.\n\n- [`client/client.gh.go`](client/client.gh.go) contains the real `Client` implementation as well as the `Interface` declaration for using `Mock` implementation during tests.\n\n- [`handlers/pets/gh.yml`](handlers/pets/gh.yml) contains information of handler names, paths and methods that are meant help outside clients.\n\n## Runtime output\n\n```sh\n$ go run .\n\nregistering ListPets as GET /pets\nregistering CreatePet as POST /create-pet\nregistering DeletePet as DELETE /pets/{id}\nregistering GetPet as GET /pets/{id}\n```\n\n## Re-generating files\n\n```sh\nfind . -name '*.gh.go' -delete\nmake -B all\ngit status\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufukty%2Fpetstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fufukty%2Fpetstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufukty%2Fpetstore/lists"}