{"id":26910303,"url":"https://github.com/srvariable/sapigo","last_synced_at":"2025-04-01T13:34:25.269Z","repository":{"id":283323147,"uuid":"951201710","full_name":"SrVariable/sapigo","owner":"SrVariable","description":"Simple API in Go","archived":false,"fork":false,"pushed_at":"2025-03-19T16:03:37.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T17:22:37.373Z","etag":null,"topics":[],"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/SrVariable.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":"2025-03-19T10:11:42.000Z","updated_at":"2025-03-19T16:03:43.000Z","dependencies_parsed_at":"2025-03-21T03:30:44.893Z","dependency_job_id":null,"html_url":"https://github.com/SrVariable/sapigo","commit_stats":null,"previous_names":["srvariable/sapigo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrVariable%2Fsapigo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrVariable%2Fsapigo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrVariable%2Fsapigo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrVariable%2Fsapigo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SrVariable","download_url":"https://codeload.github.com/SrVariable/sapigo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246647734,"owners_count":20811371,"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":[],"created_at":"2025-04-01T13:32:53.887Z","updated_at":"2025-04-01T13:34:25.262Z","avatar_url":"https://github.com/SrVariable.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sapigo - A Simple API for testing Go and Gin\n\nSimple API built with Go and Gin. This project serves as a test case for learning how to use the [Gin Web Framework](https://gin-gonic.com/).\n\n# API Endpoints\n\n|Method|Endpoint|Description|\n|-|-|-|\n|`GET`|`/v1/students`|Get all students| \n|`GET`|`/v1/students/:id`|Get student by ID| \n\n# Installation\n\nClone the repository\n```\ngit clone https://github.com/SrVariable/sapigo\n```\n\nNavigate to the project folder\n```\ncd sapigo\n```\n\nInstall dependencies\n```\ngo mod tidy\n```\n\n# Usage\n\nRun the program\n```\ngo run ./cmd/sapigo\n```\n\nAlternatively, you can build an executable and run it\n```\ngo build ./cmd/sapigo\n./sapigo\n```\n\nOnce it's running, you can interact with the API using your browser, curl, or any method you prefer.\n- To get a list of every student:\n```\ncurl localhost:8080/v1/students\n```\n- To get the student by ID:\n```\ncurl localhost:8080/v1/students/1\n```\n\nCheck [API Endpoints](#api-endpoints) to see available endpoints.\n\n# References\n\n- https://go.dev/doc/tutorial/web-service-gin\n- https://youtu.be/67yGbvyM1is\n- https://gin-gonic.com/docs\n- https://github.com/gin-gonic/examples/tree/master/group-routes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrvariable%2Fsapigo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrvariable%2Fsapigo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrvariable%2Fsapigo/lists"}