{"id":21476865,"url":"https://github.com/phogolabs/example-api","last_synced_at":"2025-03-17T08:19:03.383Z","repository":{"id":95297650,"uuid":"227852108","full_name":"phogolabs/example-api","owner":"phogolabs","description":"An example that illustrates how to build REST API form OpenAPI specification by using stride and prana","archived":false,"fork":false,"pushed_at":"2019-12-13T17:04:08.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-30T10:24:57.041Z","etag":null,"topics":["golang","open-api-v3","prana","restful-api","stride"],"latest_commit_sha":null,"homepage":null,"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/phogolabs.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}},"created_at":"2019-12-13T13:59:50.000Z","updated_at":"2024-06-19T07:42:48.546Z","dependencies_parsed_at":"2023-03-19T11:27:03.793Z","dependency_job_id":null,"html_url":"https://github.com/phogolabs/example-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phogolabs%2Fexample-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phogolabs%2Fexample-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phogolabs%2Fexample-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phogolabs%2Fexample-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phogolabs","download_url":"https://codeload.github.com/phogolabs/example-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243997126,"owners_count":20380981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["golang","open-api-v3","prana","restful-api","stride"],"created_at":"2024-11-23T11:10:43.554Z","updated_at":"2025-03-17T08:19:03.364Z","avatar_url":"https://github.com/phogolabs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swagger Bank API\n\n\n\nAPI version: 1.0.0\n\n### Overview\n\nThis server was generated by [stride](https://github.com/phogolabs/stride) project. \n\n### Prerequisite\n\nYou should have the following tools installed:\n\n- [Golang](https://www.golang.org) language (at least version 1.12)\n\n*Make sure that the environment variable `GOPATH` is set. The `GOPATH` directory\nwill be used as workspace directory for all GO projects.*\n\n### Getting Started\n\nif you host the source code on git and your project has a private dependencies\nyou should configure your git client to use git protocol. For instance for\nGitHub the command that does that should be:\n\n```\n$ git config --global url.\"git@github.com:\".insteadOf \"https://github.com/\"\n```\n\nThe dependencies are managed by Golang's\n[modules](https://github.com/golang/go/wiki/Modules) dependency system:\n\n```bash\n$ export GO111MODULE=on\n$ export PROJECT_PKG=github.com/phogolabs/example-api\n$ cd $GOPATH/src/$PROJECT_PKG\n$ go get ./...\n```\n\n### Running the tests\n\nThe packages is tested in\n[BDD](https://en.wikipedia.org/wiki/Behavior-driven_development) style. For\nthat purpose, we are using [Ginkgo](http://onsi.github.io/ginkgo/) and\n[Gomega](http://onsi.github.io/gomega/) packages.\n\nYou can install all of them by executing the following commands:\n\n```bash\n$ go get github.com/onsi/ginkgo/ginkgo\n$ go get github.com/onsi/gomega\n```\n\nThen you can run all tests with the following command:\n\n```bash\n$ ginkgo -r\n```\n\n### Building the binary\n\n```bash\n$ mkdir -p build\n$ go build -o ./build/example-api $PROJECT_PKG/cmd/example-api\n```\n\n### Running the server\n\nTo run the server, follow these simple steps:\n\n```bash\n# run the compiled binary\n$ ./build/example-api\n```\n\n```bash\n# another option is just to use golang command line tool\n$ go run cmd/example-api/main.go\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphogolabs%2Fexample-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphogolabs%2Fexample-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphogolabs%2Fexample-api/lists"}