{"id":47192952,"url":"https://github.com/trydirect/go-rest","last_synced_at":"2026-03-13T11:08:03.601Z","repository":{"id":40272056,"uuid":"233055238","full_name":"trydirect/go-rest","owner":"trydirect","description":"Go RESTful template","archived":false,"fork":false,"pushed_at":"2023-02-10T09:14:27.000Z","size":40,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-19T19:40:36.024Z","etag":null,"topics":["docker-compose-template","docker-template","golang","golang-template","restful","restful-api"],"latest_commit_sha":null,"homepage":null,"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/trydirect.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}},"created_at":"2020-01-10T13:42:40.000Z","updated_at":"2023-02-15T08:54:54.000Z","dependencies_parsed_at":"2024-06-19T19:00:48.938Z","dependency_job_id":"06f13528-96be-4961-94a8-b594c2d30f65","html_url":"https://github.com/trydirect/go-rest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trydirect/go-rest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trydirect%2Fgo-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trydirect%2Fgo-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trydirect%2Fgo-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trydirect%2Fgo-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trydirect","download_url":"https://codeload.github.com/trydirect/go-rest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trydirect%2Fgo-rest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30466311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T11:00:43.441Z","status":"ssl_error","status_checked_at":"2026-03-13T11:00:23.173Z","response_time":60,"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":["docker-compose-template","docker-template","golang","golang-template","restful","restful-api"],"created_at":"2026-03-13T11:08:03.257Z","updated_at":"2026-03-13T11:08:03.586Z","avatar_url":"https://github.com/trydirect.png","language":"Go","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=2BH8ED2AUU2RL"],"categories":[],"sub_categories":[],"readme":"# go-rest\n\nRESTful API development template based on GIN framework for development purpose\n\n## Stack includes\n* Go 1.13\n* Rest API\n* Swagger\n* GIN 1.5\n* Alpine 3.11\n\n## Note\nBefore installing this project, please, make sure you have installed docker and docker-compose\n\nTo install docker execute: \n```sh\n$ curl -fsSL https://get.docker.com -o get-docker.sh\n$ sh get-docker.sh\n$ pip install docker-compose\n```\n\n## Installation\nClone this project into your work directory:\n```sh\n$ git clone https://github.com/trydirect/go-rest.git\n```\nThen build it via docker-compose:\n```sh\n$ cd go-rest\n$ docker-compose up -d\nor\n$ docker-compose -f docker-compose-debug.yml up\n```\n\nNow, let's check the result\n```\n$ curl http://localhost:8080/api/v1/accounts\n[{\"id\":1,\"name\":\"account_1\",\"uuid\":\"00000000-0000-0000-0000-000000000000\"},{\"id\":2,\"name\":\"account_2\",\"uuid\":\"00000000-0000-0000-0000-000000000000\"},{\"id\":3,\"name\":\"account_3\",\"uuid\":\"00000000-0000-0000-0000-000000000000\"}]\n```\n\nGo to page http://localhost:8080/swagger/index.html to see generated documentation.\n\n## Generating OpenAPI\n\n1. Add comments to your API source code, See [Declarative Comments Format](https://github.com/swaggo/swag/blob/master/README.md#declarative-comments-format).\n\n2. Download swag by using:\n```sh\n$ go get -u github.com/swaggo/swag/cmd/swag\n```\nOr download a pre-compiled binary from the [release page](https://github.com/swaggo/swag/releases).\n\n3. Run `swag init` in the project's root folder. This will parse your comments and generate the required files (`docs` folder and `docs/docs.go`).\n```sh\n$ swag init -g app/main.go\n```\n\n# Contributing\n\n1. Fork it (https://github.com/trydirect/go-rest/fork)\n2. Create your feature branch (git checkout -b feature/fooBar)\n3. Commit your changes (git commit -am 'Add some fooBar')\n4. Push to the branch (git push origin feature/fooBar)\n5. Create a new Pull Request\n\n\n# Support Development\n\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=2BH8ED2AUU2RL)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrydirect%2Fgo-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrydirect%2Fgo-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrydirect%2Fgo-rest/lists"}