How to develop REST CRUD API using Spring Boot ? java Spring Boot Spring Boot REST by devs5003 - November 21, 2023August 6, 202415 It will not be an overstatement if I say that we can't develop an enterprise application without using webservices as an integration layer. Generally, we develop webservices in the form of either a producer or a consumer or both. However Producer is very important for us because we develop it in Java only. Also, we have full control of database interaction logic implementation with us. Now you might have interpreted the significance of our article 'How to develop REST CRUD API using Spring Boot?'. On the other hand, Consumer can be an Angular Application, ReactJS Application, Android Device, iOS Device and many others or even our favorite java based RestTemplate (Spring Boot REST Client). Building a RESTful CRUD (Create, Read, Update,
How to reduce boilerplate code in REST API Spring Data REST java Spring Spring Boot Spring Boot REST Spring Data REST by devs5003 - October 20, 2023July 23, 20245 In previous article on REST API Development, we have already seen that how we can develop a REST API with minimum lines of code. Still, we have more scope to reduce lines of code using a concept called 'Spring Data REST' in Spring Boot. So, our title of the article is 'How to reduce boilerplate code in REST API Spring Data REST'. In Spring Data REST concept we don't have to write even RestController and its methods. The Spring Data REST dependency will take care of it using HATEOAS (Hypertext as the Engine of Application State). HATEOAS project is a library of APIs that we can use to easily create REST representations. Spring Data REST provides hyperlinks to access REST operations
WebClient in Spring Boot java Spring Boot Spring Boot REST WebClient by devs5003 - October 4, 2023April 28, 20240 A typical modern web application generally has four well known layers i.e. Presentation Layer, Service Layer and Data Layer, and an Integration Layer. The Integration layer generally works with the web services concept and connects two different applications to exchange data between them. One application refers to producer/provider, whereas other refers to consumers. Here, we will discuss about REST consumer/client API using WebClient in Spring Boot. The traditional way of implementing REST client API is by using RestTemplate. However, we have already gone through the RestTemplate in another article where we had developed different operations to consume REST API. Now, we must have a question in mind ‘How to write REST Consumer API using WebClient in Spring Boot?’. Needless to say, WebClient