{"id":20752448,"url":"https://github.com/andhikayuana/simple-rest-go","last_synced_at":"2026-07-29T13:31:05.856Z","repository":{"id":88789612,"uuid":"165646040","full_name":"andhikayuana/simple-rest-go","owner":"andhikayuana","description":"Simple REST API using golang","archived":false,"fork":false,"pushed_at":"2019-02-06T07:51:47.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T12:52:21.355Z","etag":null,"topics":["go","go-api","go-simple-rest","golang"],"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/andhikayuana.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":"2019-01-14T10:58:49.000Z","updated_at":"2019-02-06T07:51:48.000Z","dependencies_parsed_at":"2023-06-12T15:00:11.832Z","dependency_job_id":null,"html_url":"https://github.com/andhikayuana/simple-rest-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andhikayuana/simple-rest-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andhikayuana%2Fsimple-rest-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andhikayuana%2Fsimple-rest-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andhikayuana%2Fsimple-rest-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andhikayuana%2Fsimple-rest-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andhikayuana","download_url":"https://codeload.github.com/andhikayuana/simple-rest-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andhikayuana%2Fsimple-rest-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36034682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-29T02:00:04.910Z","response_time":95,"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":["go","go-api","go-simple-rest","golang"],"created_at":"2024-11-17T08:41:23.407Z","updated_at":"2026-07-29T13:31:05.839Z","avatar_url":"https://github.com/andhikayuana.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple REST API using GO\n\n## Requirements\n- [go 1.11 or latest](https://golang.org/doc/install)\n- [dep](https://golang.github.io/dep/)\n\n## Dependencies\n- [gin](https://github.com/gin-gonic/gin)\n- [gorm](https://github.com/jinzhu/gorm)\n- [sqlite3](https://github.com/mattn/go-sqlite3)\n\n## Install\n- `make install-deb`\n\n## Build\n- `make build`\nthats will be generate 3 binary file for _linux, macos, windows_ in `./build`\nor you can specified build using below command :\n```\nmake build-linux\nmake build-darwin\nmake build-windows\n```\n\n## Run\n- `make run` or you can run the binary file in `./build` directory after build success\n\n## Documentation\n\n* `BASE_URL=http://localhost:3000`\n* `GET` `/products` _get all persons_\n\nresponse example\n\n```json\n{\n    \"code\": 200,\n    \"data\": [\n        {\n            \"id\": 1,\n            \"FirstName\": \"\",\n            \"LastName\": \"\",\n            \"Avatar\": \"\",\n            \"Age\": 0\n        },\n        {\n            \"id\": 2,\n            \"FirstName\": \"\",\n            \"LastName\": \"\",\n            \"Avatar\": \"https://api.adorable.io/avatars/120/jarjitsingh.png\",\n            \"Age\": 10\n        },\n        {\n            \"id\": 3,\n            \"FirstName\": \"jarjit\",\n            \"LastName\": \"singh\",\n            \"Avatar\": \"https://api.adorable.io/avatars/120/jarjitsingh.png\",\n            \"Age\": 10\n        }\n    ],\n    \"msg\": \"success\"\n}\n``` \n\n* `GET` `/persons/{id}` _get person by id_\n\nresponse example\n\n```json\n{\n    \"code\": 200,\n    \"msg\": \"Success\",\n    \"data\": {\n        \"id\": 4,\n        \"FirstName\": \"jarjit\",\n        \"LastName\": \"singh\",\n        \"Avatar\": \"https://api.adorable.io/avatars/120/jarjitsingh.png\",\n        \"Age\": 10\n    }\n}\n```\n\n\n* `POST` `/persons` _insert person data_\n\nrequest example\n\n```json\n{\n\t\"firstname\":\"jarjit\",\n\t\"lastname\":\"singh\",\n\t\"avatar\":\"https://api.adorable.io/avatars/120/jarjitsingh.png\",\n\t\"age\":10\n}\n```\n\nresponse example\n\n```json\n{\n    \"code\": 200,\n    \"data\": {\n        \"id\": 4,\n        \"FirstName\": \"jarjit\",\n        \"LastName\": \"singh\",\n        \"Avatar\": \"https://api.adorable.io/avatars/120/jarjitsingh.png\",\n        \"Age\": 10\n    },\n    \"msg\": \"success\"\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandhikayuana%2Fsimple-rest-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandhikayuana%2Fsimple-rest-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandhikayuana%2Fsimple-rest-go/lists"}