{"id":29353781,"url":"https://github.com/maybeizen/go-webserver","last_synced_at":"2025-07-09T02:09:28.873Z","repository":{"id":302579649,"uuid":"1012915753","full_name":"maybeizen/go-webserver","owner":"maybeizen","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-03T05:52:41.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-03T06:27:35.414Z","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/maybeizen.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,"zenodo":null}},"created_at":"2025-07-03T04:56:17.000Z","updated_at":"2025-07-03T05:52:44.000Z","dependencies_parsed_at":"2025-07-03T06:28:32.375Z","dependency_job_id":null,"html_url":"https://github.com/maybeizen/go-webserver","commit_stats":null,"previous_names":["maybeizen/go-webserver"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maybeizen/go-webserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maybeizen%2Fgo-webserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maybeizen%2Fgo-webserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maybeizen%2Fgo-webserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maybeizen%2Fgo-webserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maybeizen","download_url":"https://codeload.github.com/maybeizen/go-webserver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maybeizen%2Fgo-webserver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264379216,"owners_count":23598824,"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-07-09T02:09:28.244Z","updated_at":"2025-07-09T02:09:28.867Z","avatar_url":"https://github.com/maybeizen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Webserver/API\r\n\r\nlittle thing im tinkering with to get better at Go\r\n\r\n## Building\r\n\r\n(yeah im using Node scripts to build a Go project. Shut up)\r\n\r\n- `npm run build` - Builds a Windows executable to `./bin/webserver.exe`\r\n- `npm run build-linux` - Builds a Linux executable to `./bin/webserver`\r\n\r\n## Endpoints\r\n\r\n(check out [routes.go](./internal/routes/routes.go))\r\n\r\n- `/api/health` (GET) - Responses with `200 OK` if the server is online and responding.\r\n- `/api/random` (GET) - Gives you a random number between 1-100.\r\n\r\n---\r\n\r\n- `/api/say` (POST) - Repeats whatever you say to it.\r\n\r\nData:\r\n\r\n```json\r\n{\r\n  \"message\": \"Hello, world!\"\r\n}\r\n```\r\n\r\n- `/api/user` (POST) - Store a user in the remote database.\r\n\r\nData:\r\n\r\n```json\r\n{\r\n  \"name\": \"Some name\",\r\n  \"email\": \"example@email.com\",\r\n  \"age\": 18\r\n}\r\n```\r\n\r\n- `/api/user?name=example` (DELETE) - Delete a user by name.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaybeizen%2Fgo-webserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaybeizen%2Fgo-webserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaybeizen%2Fgo-webserver/lists"}