{"id":16100670,"url":"https://github.com/omerjuve2023/http-client","last_synced_at":"2026-05-09T10:26:40.080Z","repository":{"id":238685144,"uuid":"797036034","full_name":"OmerJuve2023/http-client","owner":"OmerJuve2023","description":"In this tutorial you will learn how to call a REST API using the JDK's Http Client. In this example you will call a public REST API and build out an entire CRUD service complete with tests using JUnit 5.","archived":false,"fork":false,"pushed_at":"2024-06-02T18:49:44.000Z","size":96,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T05:58:51.056Z","etag":null,"topics":["backend","http-client","java","learn","maven","spring","test","web"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OmerJuve2023.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2024-05-07T04:35:39.000Z","updated_at":"2024-06-03T15:17:10.000Z","dependencies_parsed_at":"2024-06-02T20:03:20.981Z","dependency_job_id":null,"html_url":"https://github.com/OmerJuve2023/http-client","commit_stats":null,"previous_names":["omerjuve2023/http-client"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmerJuve2023%2Fhttp-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmerJuve2023%2Fhttp-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmerJuve2023%2Fhttp-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmerJuve2023%2Fhttp-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OmerJuve2023","download_url":"https://codeload.github.com/OmerJuve2023/http-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415928,"owners_count":20935385,"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":["backend","http-client","java","learn","maven","spring","test","web"],"created_at":"2024-10-09T18:47:40.417Z","updated_at":"2026-05-09T10:26:35.053Z","avatar_url":"https://github.com/OmerJuve2023.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Http-Client\n\nIn this tutorial you will learn how to call a REST API using the JDK's Http Client. In this example you will call a\npublic REST API and build out an entire CRUD service complete with tests using JUnit 5.\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing\npurposes.\n\n### Prerequisites\n\n- Java 17 or higher\n- Maven\n- Docker (optional)\n- IntelliJ IDEA (optional)\n- Postman (optional)\n\n### Installing\n\nA step by step series of examples that tell you how to get a development environment running.\n\n1. Clone the repository\n\n```bash\ngit clone https://github.com/OmerJuve2023/http-client.git\n```\n\n2. Change into the project directory\n\n```bash\ncd JpsOwnStarted\n```\n\n3. Build the project\n\n```bash\nmvn clean install\n```\n\n4. Run the project\n\n```bash\nmvn spring-boot:run\n```\n\n5. Open your browser and navigate to `http://localhost:8080/api/posts`\n\n## Running the tests\n\nTo run the tests, execute the following command:\n\n```bash\nmvn test\n```\n\n## Running the application with Docker\n\n1. Build the Docker image\n\n```bash\ndocker build -t http-client\n```\n\n2. Run the Docker container\n\n```bash\ndocker run -p 8080:8080 http-client\n```\n\n## Built With GraalVM\n\n1. Build the native image\n\n```bash\nmvn -Pnative spring-boot:build-image\n```\n\n2. Run the native image\n\n```bash\ndocker run -p 8080:8080 http-client\n```\n\n## Authors\n\n- **OmerJuve2023** - [OmerJuve2023](https://github.com/OmerJuve2023)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomerjuve2023%2Fhttp-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomerjuve2023%2Fhttp-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomerjuve2023%2Fhttp-client/lists"}