{"id":34176102,"url":"https://github.com/pytorchtw/go-json-rest-starter","last_synced_at":"2026-03-10T09:39:59.453Z","repository":{"id":65373728,"uuid":"242081311","full_name":"pytorchtw/go-json-rest-starter","owner":"pytorchtw","description":null,"archived":false,"fork":false,"pushed_at":"2020-02-21T07:58:20.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T12:44:35.681Z","etag":null,"topics":["demo","docker","golang","json","rest","starter"],"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/pytorchtw.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}},"created_at":"2020-02-21T07:37:58.000Z","updated_at":"2020-02-21T07:59:31.000Z","dependencies_parsed_at":"2023-01-20T02:30:19.729Z","dependency_job_id":null,"html_url":"https://github.com/pytorchtw/go-json-rest-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pytorchtw/go-json-rest-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorchtw%2Fgo-json-rest-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorchtw%2Fgo-json-rest-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorchtw%2Fgo-json-rest-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorchtw%2Fgo-json-rest-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pytorchtw","download_url":"https://codeload.github.com/pytorchtw/go-json-rest-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorchtw%2Fgo-json-rest-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30328893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: 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":["demo","docker","golang","json","rest","starter"],"created_at":"2025-12-15T12:25:21.167Z","updated_at":"2026-03-10T09:39:59.438Z","avatar_url":"https://github.com/pytorchtw.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-json-rest-starter\n\n#### This is a simple demo json rest server in golang with code adapted from https://github.com/ant0ine/go-json-rest \n\n\nInstallation\n\n- Git clone to local directory\n\n- Build, test and start up the service with docker compose\n```\ndocker-compose up\n```\n\n- Open a new console and test with the following:\n\n```\ncurl -i -H 'Content-Type: application/json' \\\n    -d '{\"Code\":\"FR\",\"Name\":\"France\"}' http://127.0.0.1:8080/countries\ncurl -i -H 'Content-Type: application/json' \\\n    -d '{\"Code\":\"US\",\"Name\":\"United States\"}' http://127.0.0.1:8080/countries\ncurl -i http://127.0.0.1:8080/countries/FR\ncurl -i http://127.0.0.1:8080/countries/US\ncurl -i http://127.0.0.1:8080/countries\ncurl -i -X DELETE http://127.0.0.1:8080/countries/FR\ncurl -i http://127.0.0.1:8080/countries\ncurl -i -X DELETE http://127.0.0.1:8080/countries/US\ncurl -i http://127.0.0.1:8080/countries\n```\n\nYou should be able the see the incoming requests in the docker console\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytorchtw%2Fgo-json-rest-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpytorchtw%2Fgo-json-rest-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytorchtw%2Fgo-json-rest-starter/lists"}