{"id":21377019,"url":"https://github.com/codesqueak/golangexamplerestserver","last_synced_at":"2025-03-16T09:44:18.389Z","repository":{"id":40526322,"uuid":"507618112","full_name":"codesqueak/GolangExampleRESTServer","owner":"codesqueak","description":"An example REST server built using Golang","archived":false,"fork":false,"pushed_at":"2022-07-08T00:31:00.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-22T21:44:53.973Z","etag":null,"topics":["example","golang","rest","restful-api"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codesqueak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-26T15:53:35.000Z","updated_at":"2023-06-23T14:12:26.000Z","dependencies_parsed_at":"2022-06-27T17:31:17.620Z","dependency_job_id":null,"html_url":"https://github.com/codesqueak/GolangExampleRESTServer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesqueak%2FGolangExampleRESTServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesqueak%2FGolangExampleRESTServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesqueak%2FGolangExampleRESTServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesqueak%2FGolangExampleRESTServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codesqueak","download_url":"https://codeload.github.com/codesqueak/GolangExampleRESTServer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243852434,"owners_count":20358270,"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":["example","golang","rest","restful-api"],"created_at":"2024-11-22T09:18:42.069Z","updated_at":"2025-03-16T09:44:18.364Z","avatar_url":"https://github.com/codesqueak.png","language":"Go","readme":"# Example REST Processing in Go\n\nThis project demonstrates how to handle each HTTP Verb using go\n\nIt includes examples of:\n\n- GET / POST / PUT / PATCH / DELETE / HEAD verb handling\n- Query parameters\n- URL parameters\n- JSON Marshal / Unmarshal processing\n- Error handling\n- File retrieval\n- ETag generation\n- Swagger usage\n- ... anything else i can think of and have time to include \n\n\n## Install Swagger Tooling\n```\ndir=$(mktemp -d)\ngit clone https://github.com/go-swagger/go-swagger \"$dir\"\ncd \"$dir\"\ngo install ./cmd/swagger\n```\n## Default Swagger Project Page\n\nhttp://localhost:8090/docs\n\n## Various Components used\n\nOpenAPI project for golang\n\n[OpenAPI Initiative golang toolkit](https://github.com/go-openapi)\n\nThe runtime component for use in codegeneration or as untyped usage.\n\n[openapi runtime interfaces](https://github.com/go-openapi)\n```\ngo get github.com/go-openapi/runtime/middleware\n```\nGorilla is a web toolkit for the Go programming language that provides useful, composable packages for writing HTTP-based applications.\n\n[Gorilla Web Toolkit](https://github.com/gorilla)\n```\ngo get -u github.com/gorilla/mux\n```\n## Generate Swagger YAML\n```\nswagger generate spec -o ./swagger.yaml --scan-models\n```\n## Coffee\n\nIf you find this project useful, you may want to [__Buy me a Coffee!__ :coffee:](https://www.buymeacoffee.com/codesqueak) Thanks :thumbsup:","funding_links":["https://www.buymeacoffee.com/codesqueak"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesqueak%2Fgolangexamplerestserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodesqueak%2Fgolangexamplerestserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesqueak%2Fgolangexamplerestserver/lists"}