{"id":21712287,"url":"https://github.com/ashutoshsahoo/gs-spring-boot-http-client","last_synced_at":"2026-04-16T17:33:26.185Z","repository":{"id":209776470,"uuid":"724559215","full_name":"ashutoshsahoo/gs-spring-boot-http-client","owner":"ashutoshsahoo","description":"Spring Declarative HTTP Client using @HttpExchange","archived":false,"fork":false,"pushed_at":"2024-08-15T07:22:23.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-20T18:26:11.536Z","etag":null,"topics":["getexchange","httpexchange","postexchange","spring-boot3","spring-boot3x","spring6"],"latest_commit_sha":null,"homepage":"","language":"Java","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/ashutoshsahoo.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":"2023-11-28T10:27:42.000Z","updated_at":"2024-10-14T07:28:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8c38b0f-39cc-4f32-aa48-975f26248fed","html_url":"https://github.com/ashutoshsahoo/gs-spring-boot-http-client","commit_stats":null,"previous_names":["ashutoshsahoo/gs-spring-boot-http-client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashutoshsahoo/gs-spring-boot-http-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshsahoo%2Fgs-spring-boot-http-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshsahoo%2Fgs-spring-boot-http-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshsahoo%2Fgs-spring-boot-http-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshsahoo%2Fgs-spring-boot-http-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashutoshsahoo","download_url":"https://codeload.github.com/ashutoshsahoo/gs-spring-boot-http-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshsahoo%2Fgs-spring-boot-http-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281064194,"owners_count":26437785,"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-10-26T02:00:06.575Z","response_time":61,"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":["getexchange","httpexchange","postexchange","spring-boot3","spring-boot3x","spring6"],"created_at":"2024-11-25T23:36:53.963Z","updated_at":"2025-10-26T05:45:48.844Z","avatar_url":"https://github.com/ashutoshsahoo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gs-spring-boot-http-client\n\nSpring Declarative HTTP Client using @HttpExchange \n\n* Declaration\n\n```java\n\n@HttpExchange(url = \"/users\",\n        accept = MediaType.APPLICATION_JSON_VALUE,\n        contentType = MediaType.APPLICATION_JSON_VALUE)\npublic interface UserClient {\n\n    @GetExchange\n    List\u003cUserDto\u003e getAll();\n\n    @GetExchange(\"/{id}\")\n    UserDto getById(@PathVariable(\"id\") Long id);\n\n    @PostExchange\n    ResponseEntity\u003cVoid\u003e save(@RequestBody UserDto userDto);\n\n    @PutExchange(\"/{id}\")\n    ResponseEntity\u003cVoid\u003e update(@PathVariable Long id, @RequestBody UserDto userDto);\n\n    @DeleteExchange(\"/{id}\")\n    ResponseEntity\u003cVoid\u003e delete(@PathVariable Long id);\n\n}\n\n```\n\n* Configuration\n\n```java\n\n@Configuration\npublic class UserClientConfig {\n\n    @Bean\n    RestClient restClient() {\n        return RestClient.builder()\n                .baseUrl(\"https://jsonplaceholder.typicode.com/\")\n                .build();\n    }\n\n    @Bean\n    UserClient userClient(RestClient restClient) {\n        HttpServiceProxyFactory httpServiceProxyFactory =\n                HttpServiceProxyFactory.builderFor(RestClientAdapter.create(restClient))\n                        .build();\n        return httpServiceProxyFactory.createClient(UserClient.class);\n    }\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashutoshsahoo%2Fgs-spring-boot-http-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashutoshsahoo%2Fgs-spring-boot-http-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashutoshsahoo%2Fgs-spring-boot-http-client/lists"}