https://github.com/br93/rest-client-http-interface-cron
Using RestClient from Spring Framework 6.1, HTTP interfaces and scheduling methods
https://github.com/br93/rest-client-http-interface-cron
http-interface restclient scheduled spring spring-boot
Last synced: 11 months ago
JSON representation
Using RestClient from Spring Framework 6.1, HTTP interfaces and scheduling methods
- Host: GitHub
- URL: https://github.com/br93/rest-client-http-interface-cron
- Owner: br93
- Created: 2023-09-12T18:17:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-13T16:46:59.000Z (over 2 years ago)
- Last Synced: 2025-01-07T18:43:43.377Z (about 1 year ago)
- Topics: http-interface, restclient, scheduled, spring, spring-boot
- Language: Java
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
RestClient, HTTP interfaces and CRON
---
Projeto para praticar os conceitos de RestClient, HTTP Interfaces and CRON
Projeto que utiliza RestClient do Spring Framework 6.1 em conjunto com HTTP Interfaces. Dois serviços implementados: [articles](https://github.com/br93/rest-client-http-interface-cron/tree/main/articles-service) e [blog](https://github.com/br93/rest-client-http-interface-cron/tree/main/blog-service). Articles é um CRUD simples, onde se pode criar, remover, atualizar e deletar artigos. Para popular a lista de artigos, uma consulta à API [Loripsum](https://loripsum.net/api/) é feita a cada 10 segundos com uso de @Scheduled. O serviço de Blog irá então consultar API de artigos por meio de RestClient e o uso de HTTP Interface.
Project using Spring Framework 6.1's RestClient and HTTP Interfaces. Two services were implemented: [articles](https://github.com/br93/rest-client-http-interface-cron/tree/main/articles-service) e [blog](https://github.com/br93/rest-client-http-interface-cron/tree/main/blog-service). Articles is a simple CRUD, where you can create, remove, update and delete articles. To populate the list of articles, a request to [Loripsum](https://loripsum.net/api/) API is made every 10 seconds using @Scheduled annotation. The Blog service will make requests to the article API usign RestClient and HTTP Interface.