{"id":24680401,"url":"https://github.com/bragdond/simple-rest","last_synced_at":"2025-03-21T19:33:57.987Z","repository":{"id":256230253,"uuid":"854423959","full_name":"BragdonD/simple-rest","owner":"BragdonD","description":"A wrapper around http/net standard library in golang","archived":false,"fork":false,"pushed_at":"2024-09-11T17:18:02.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T14:13:14.297Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BragdonD.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":"2024-09-09T06:32:56.000Z","updated_at":"2024-09-11T17:16:24.000Z","dependencies_parsed_at":"2024-09-09T19:02:16.841Z","dependency_job_id":"46f3de7f-ebcb-4f11-9cb3-ad3ca8588e38","html_url":"https://github.com/BragdonD/simple-rest","commit_stats":null,"previous_names":["bragdond/simple-rest"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BragdonD%2Fsimple-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BragdonD%2Fsimple-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BragdonD%2Fsimple-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BragdonD%2Fsimple-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BragdonD","download_url":"https://codeload.github.com/BragdonD/simple-rest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244855755,"owners_count":20521701,"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-01-26T14:13:20.038Z","updated_at":"2025-03-21T19:33:57.931Z","avatar_url":"https://github.com/BragdonD.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple-REST Web Framework\n\nSimple-REST is a web framework written in [Go](https://go.dev/). It is a simple wrapper around the [net/http](https://pkg.go.dev/net/http) standard library. \nIt has been developped to be as simple as possible while providing the most usefull utilities.\n\n## Getting started\n\n### Prerequisites\n\nSimple-REST requires [Go](https://go.dev/) version [1.22](https://go.dev/doc/devel/release#go1.22.0) or above.\n\n### Getting Simple-REST\n\nWith [Go's module support](https://go.dev/wiki/Modules#how-to-use-modules), `go [build|run|test]` automatically fetches the necessary dependencies when you add the import in your code:\n\n```sh\nimport \"github.com/bragdond/simple-rest\"\n```\n\nAlternatively, use `go get`:\n\n```sh\ngo get -u github.com/bragdond/simple-rest\n```\n\n### Running Simple-REST\n\nA basic example:\n\n```go\npackage main\n\nimport (\n  \"net/http\"\n\n  \"github.com/simple-rest\"\n)\n\nfunc handleHello(w http.ResponseWriter, r *http.Request, p simplerest.Parameters) error {\n    w.WriteHeader(http.StatusAccepted)\n    _, err :=w.Write([]byte(data))\n    return err\n}\n\nfunc main() {\n    server := simplerest.NewServer(\"localhost\", 8080)\n    server.HandleFunc(\"/hello\", nil, handleHello, http.MethodGet)\n\tgo server.Serve()\n}\n```\n\nTo run the code, use the `go run` command, like:\n\n```sh\n$ go run cmd/main.go\n```\n\nThen visit [`localhost:8080/hello`](http://localhost:8080/hello) in your browser to see the response!\n\n\n### Contributing\n\nI welcome contributions! Please follow these steps to contribute:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Make your changes.\n4. Commit your changes (`git commit -am 'Add new feature'`).\n5. Push to the branch (`git push origin feature-branch`).\n6. Create a new Pull Request.\n\n### License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n### Acknowledgements\n\n- [Go](https://go.dev/)\n- [net/http](https://pkg.go.dev/net/http)\n\n### Contact\n\nFor any questions or suggestions, feel free to open an issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbragdond%2Fsimple-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbragdond%2Fsimple-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbragdond%2Fsimple-rest/lists"}