{"id":37164708,"url":"https://github.com/abhishekb91/petstore-openapi3","last_synced_at":"2026-01-14T19:33:29.865Z","repository":{"id":51116865,"uuid":"354568182","full_name":"abhishekb91/petstore-openapi3","owner":"abhishekb91","description":"Creating HTTP API using golang in openapi3 standard","archived":false,"fork":false,"pushed_at":"2021-05-23T03:57:04.000Z","size":6946,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-21T18:51:17.371Z","etag":null,"topics":["echo","go","golang","openapi-codegen","openapi3","swagger-ui"],"latest_commit_sha":null,"homepage":"","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/abhishekb91.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}},"created_at":"2021-04-04T14:43:43.000Z","updated_at":"2024-02-28T14:37:13.000Z","dependencies_parsed_at":"2022-09-16T09:10:53.666Z","dependency_job_id":null,"html_url":"https://github.com/abhishekb91/petstore-openapi3","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/abhishekb91/petstore-openapi3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishekb91%2Fpetstore-openapi3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishekb91%2Fpetstore-openapi3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishekb91%2Fpetstore-openapi3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishekb91%2Fpetstore-openapi3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhishekb91","download_url":"https://codeload.github.com/abhishekb91/petstore-openapi3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishekb91%2Fpetstore-openapi3/sbom","scorecard":{"id":160934,"data":{"date":"2025-08-11","repo":{"name":"github.com/abhishekb91/petstore-openapi3","commit":"b8f4ccc20aa10cd2f43b26bc5b707c1ef8f0e33f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3533 / GHSA-wq9g-9vfc-cfq9","Warn: Project is vulnerable to: GO-2022-1031 / GHSA-crxj-hrmp-4rwf"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T13:24:15.889Z","repository_id":51116865,"created_at":"2025-08-16T13:24:15.889Z","updated_at":"2025-08-16T13:24:15.889Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28432627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["echo","go","golang","openapi-codegen","openapi3","swagger-ui"],"created_at":"2026-01-14T19:33:29.239Z","updated_at":"2026-01-14T19:33:29.846Z","avatar_url":"https://github.com/abhishekb91.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    Petstore-Openapi3\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eCreating HTTP API using golang in openapi3 standard\u003c/strong\u003e\u003cbr\u003e\n\u003c/p\u003e\n\n## Contents\n- [Getting started](#getting-started)\n- [Development](#development)\n\n## Getting started\nThe intent of this sample project is to demonstrate the usage of various tools to create webapis using openapi 3 standard. This project uses:\n- [oapi-codegen](https://github.com/deepmap/oapi-codegen) to generate server stubs\n- [swagger-ui](https://github.com/swagger-api/swagger-ui) to display the api document\n- [echo](https://github.com/labstack/echo) as HTTP routing engine\n- [statik](https://github.com/rakyll/statik) to compile static files into a Go binary\n- [mockery](https://github.com/vektra/mockery) to generate mocks from interfaces\n\n### Prerequisite\n- local golang installation\n- MySQL Database. Use Makefile to generate MySQL container locally.\n\n## Development\n\n- Starting Application\n\n  The service expects database connection to be passed as an environment variable. In order to make local dev easy, there are two options from which one can run the service:\n\n  - From Visual Studio Code:\n    In order to debug the service, one can run the service directly from the Visual Studio Code `Debug and Run` \u003e `Launch` and add breakpoints\n\n  - Using Makefile:\n    From the project Root:\n\n    ```bash\n    make start_service\n    ```\n\n- API End-points\n\n  ```\n  http://localhost:8080/docs/\n  ```\n\n- Running Unit Tests\n  ```bash\n  go test ./...\n  ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhishekb91%2Fpetstore-openapi3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhishekb91%2Fpetstore-openapi3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhishekb91%2Fpetstore-openapi3/lists"}