{"id":25720060,"url":"https://github.com/gregwhitaker/ratpack-methodoverride-example","last_synced_at":"2025-08-02T12:36:08.094Z","repository":{"id":82732637,"uuid":"157468740","full_name":"gregwhitaker/ratpack-methodoverride-example","owner":"gregwhitaker","description":"Example of supporting X-HTTP-METHOD-OVERRIDE in Ratpack","archived":false,"fork":false,"pushed_at":"2018-11-14T01:15:06.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T17:41:29.931Z","etag":null,"topics":["method-override","ratpack","ratpack-api","ratpackweb"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/gregwhitaker.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-14T01:02:23.000Z","updated_at":"2018-11-14T01:15:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"8a66adfe-d13d-424a-9f2c-731af5d9681e","html_url":"https://github.com/gregwhitaker/ratpack-methodoverride-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gregwhitaker/ratpack-methodoverride-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fratpack-methodoverride-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fratpack-methodoverride-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fratpack-methodoverride-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fratpack-methodoverride-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregwhitaker","download_url":"https://codeload.github.com/gregwhitaker/ratpack-methodoverride-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fratpack-methodoverride-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268390518,"owners_count":24243064,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["method-override","ratpack","ratpack-api","ratpackweb"],"created_at":"2025-02-25T17:36:28.055Z","updated_at":"2025-08-02T12:36:07.992Z","avatar_url":"https://github.com/gregwhitaker.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ratpack-methodoverride-example\n[![Build Status](https://travis-ci.org/gregwhitaker/ratpack-methodoverride-example.svg?branch=master)](https://travis-ci.org/gregwhitaker/ratpack-methodoverride-example)\n\nAn example of adding support for the `X-HTTP-METHOD-OVERRIDE` header in [Ratpack](https://ratpack.io).\n\nThe example contains a single endpoint at `PATCH /api/v1/dummy` that can be also be called using the `X-HTTP-METHOD-OVERRIDE` header on a `POST` request.\n\n## Running the Example\n1. Run the following command to start the application:\n\n        ./gradlew run\n        \n2. Run the following command to call the `/api/v1/dummy` endpoint using the `PATCH` method:\n\n        curl --request PATCH http://localhost:5050/api/v1/dummy\n        \n    If successful, you will see the following message:\n    \n        Dummy Endpoint!\n\n3. Run the following command to call the `/api/v1/dummy` endpoint using the override `POST` method:\n\n        curl -H \"X-HTTP-METHOD-OVERRIDE: patch\" -X POST http://localhost:5050/api/v1/dummy\n        \n    If successful, you will see the same message as before:\n    \n        Dummy Endpoint!\n\n## Bugs and Feedback\nFor bugs, questions, and discussions please use the [Github Issues](https://github.com/gregwhitaker/ratpack-methodoverride-example/issues).\n\n## License\nMIT License\n\nCopyright (c) 2018 Greg Whitaker\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fratpack-methodoverride-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregwhitaker%2Fratpack-methodoverride-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fratpack-methodoverride-example/lists"}