{"id":16514628,"url":"https://github.com/danielliu1123/httpexchange-spring-boot-starter","last_synced_at":"2025-03-16T19:30:44.861Z","repository":{"id":65419996,"uuid":"586441279","full_name":"DanielLiu1123/httpexchange-spring-boot-starter","owner":"DanielLiu1123","description":"The missing starter for Spring 6 declarative HTTP client (@HttpExchange).","archived":false,"fork":false,"pushed_at":"2024-09-25T17:16:52.000Z","size":1946,"stargazers_count":28,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-12T16:13:00.627Z","etag":null,"topics":["declarative-http-client","graalvm","http-client","jdk17","native-image","reactive","spring-boot","spring-boot-starter","spring-cloud","spring6"],"latest_commit_sha":null,"homepage":"https://danielliu1123.github.io/httpexchange-spring-boot-starter/","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/DanielLiu1123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-01-08T06:18:49.000Z","updated_at":"2024-09-25T17:16:56.000Z","dependencies_parsed_at":"2024-01-27T16:23:52.711Z","dependency_job_id":"1210a19f-2128-4409-9b69-6e70c454cfac","html_url":"https://github.com/DanielLiu1123/httpexchange-spring-boot-starter","commit_stats":null,"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielLiu1123%2Fhttpexchange-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielLiu1123%2Fhttpexchange-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielLiu1123%2Fhttpexchange-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielLiu1123%2Fhttpexchange-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielLiu1123","download_url":"https://codeload.github.com/DanielLiu1123/httpexchange-spring-boot-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221667137,"owners_count":16860558,"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":["declarative-http-client","graalvm","http-client","jdk17","native-image","reactive","spring-boot","spring-boot-starter","spring-cloud","spring6"],"created_at":"2024-10-11T16:13:08.299Z","updated_at":"2025-03-16T19:30:44.855Z","avatar_url":"https://github.com/DanielLiu1123.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HttpExchange Spring Boot Starter [![Build](https://img.shields.io/github/actions/workflow/status/DanielLiu1123/httpexchange-spring-boot-starter/build.yml?branch=main)](https://github.com/DanielLiu1123/httpexchange-spring-boot-starter/actions) [![Maven Central](https://img.shields.io/maven-central/v/io.github.danielliu1123/httpexchange-spring-boot-starter)](https://search.maven.org/artifact/io.github.danielliu1123/httpexchange-spring-boot-starter) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nSpring 6 now supports creating HTTP clients using the [`@HttpExchange`](https://docs.spring.io/spring-framework/reference/integration/rest-clients.html#rest-http-interface) annotation.\nThis removes the need for [Spring Cloud OpenFeign](https://github.com/spring-cloud/spring-cloud-openfeign).\n\nThe main goals of this project are:\n\n- To promote `@HttpExchange` as the standard for defining API interfaces.\n- To offer an experience similar to `Spring Cloud OpenFeign` for declarative HTTP clients.\n- To ensure compatibility with Spring web annotations like `@RequestMapping` and `@GetMapping`.\n- To avoid external annotations, making it easier to switch to other implementations.\n\n## Quick Start\n\n```groovy\nimplementation(\"io.github.danielliu1123:httpexchange-spring-boot-starter:\u003clatest\u003e\")\n```\n\n```java\n@HttpExchange(\"https://my-json-server.typicode.com\")\ninterface PostApi {\n    @GetExchange(\"/typicode/demo/posts/{id}\")\n    Post getPost(@PathVariable(\"id\") int id);\n}\n\n@SpringBootApplication\n@EnableExchangeClients\npublic class App {\n    public static void main(String[] args) {\n        SpringApplication.run(App.class, args);\n    }\n\n    @Bean\n    ApplicationRunner runner(PostApi api) {\n        return args -\u003e api.getPost(1);\n    }\n}\n```\n\nRefer to [quick-start](examples/quick-start).\n\n## Documentation\n\nGo to [Reference Documentation](https://danielliu1123.github.io/httpexchange-spring-boot-starter/docs/intro) for more information.\n\n## Code of Conduct\n\nThis project is governed by the [Code of Conduct](./CODE_OF_CONDUCT.md).\nBy participating, you are expected to uphold this code of conduct.\nPlease report unacceptable behavior to llw599502537@gmail.com.\n\n## Contributing\n\nUse the [issue tracker](https://github.com/DanielLiu1123/httpexchange-spring-boot-starter/issues) for bug reports, \nfeature requests, and submitting pull requests.\n\nIf you would like to contribute to the project, please refer to [Contributing](./CONTRIBUTING.md).\n\n## License\n\nThe MIT License.\n\n## Special Thanks\n\nMany thanks to [JetBrains](https://www.jetbrains.com/) for sponsoring this Open Source project with a license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielliu1123%2Fhttpexchange-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielliu1123%2Fhttpexchange-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielliu1123%2Fhttpexchange-spring-boot-starter/lists"}