In this article, we’ll learn step by step, how to build GraphQL API with Spring Boot.
In this quick article, we’ll see @Controller and @RestController annotations and their difference in Spring MVC.
In this article, we’ll learn how to configure a FeignClient in your Spring Boot project to consume RESTFul APIs from other services.
In this article, we’ll learn step by step, how to build RESTFul API with Spring Boot. We’ll also learn the RestController, HTTP response codes and best practices along the way.
When we create RESTFul APIs in spring boot application in microservices environment. It becomes essential to log incoming API request and response and push it to centralized logging system such as Splunk or ELK for debugging. Also all the logs related to one request should have some common id to relate them. In this post we are going to solve these problems.
In spring boot microservices based application, where microservices talks to each other using RESTFul APIs. We can expose some important information about microservice such as name, version, description over some endpoints say /info and also realtime status or health over some endpoint say /health to create application dashboards, realtime alerts, track microservice updates and so on…
Swagger library is useful if you are creating REST services in spring boot web application. Swagger user interface allows you to view REST services and execute GET, POST, PUT, DELETE HTTP endpoints. This is helpful since you do not need to use Postman or some other tool to test REST Apis.
Follow these steps to configure swagger in your spring boot application:-