December 7, 2023

Spring Boot Microservices – Creating REST API using Spring Boot

In the post Exposing repositories as REST resources, we exposed a repository as a RESTful interface using Spring Data REST. However, that’s not the conventional way of creating REST API for Spring Boot Microservices. That particular approach works best if your data model is exactly similar to your domain model. Usually, that’s not the case. In this post, we will look at the right way of creating REST API using Spring Boot.

Spring Boot Microservices – Creating REST API using Spring Boot Read More

Spring Boot Microservices – Exposing repositories as REST resources

For any application, it is an important functionality to be able to provide its data to the consumer. REST APIs are one of the most popular ways to do so. In this post, we will look at the process of exposing repositories as REST resources using Spring Boot. REST or Representational State Transfer is an architectural style that advocates the use of standard HTTP protocol to expose such an interface. And by the way, Spring Boot makes it very easy to do so.

Spring Boot Microservices – Exposing repositories as REST resources Read More

RESTful Web Services : Simple Tutorial For Beginners

If you are familiar with modern web development then you will have encounter the terms like REST and API. If you have worked with APIs or heard of these terms but do not have complete understanding of how to build your own API or how they communicate and work, this tutorial RESTful web services – simple tutorial for beginners is for you. In this tutorial, I will be sharing what are REST and RESTful APIs, overview of REST principles, understanding the terms Request and Response, REST API Endpoints and at last conclusion.

RESTful Web Services : Simple Tutorial For Beginners Read More

Web API Security and Best Practices

APIs often self-document information, such as their implementation and internal structure, which can be used as intelligence for a cyber-attack. Additional vulnerabilities, such as weak authentication, lack of encryption, business logic flaws and insecure endpoints make APIs vulnerable to the attacks outlined below: Man In The Middle (MITM), API injections (XSS and SQLi), Distributed denial of service (DDoS)

Web API Security and Best Practices Read More

Quickstart RESTFul application with Spring Boot and Jersey

Spring is a popular Java application framework for creating enterprise applications. Spring Boot is the next step in evolution of Spring framework. It helps create stand-alone, production-grade Spring based applications with minimal effort. It promotes using the convention over configuration principle over XML configurations. Spring Boot Jersey tutorial shows how to set up a simple RESTFul application with Jersey in a Spring Boot application. Jersey is an alternative to Spring RESTFul applications created with @RestController.

Quickstart RESTFul application with Spring Boot and Jersey Read More

Top 10 Best Java REST and Microservice Frameworks

There is no best Java Rest framework. There is also no best Java microservice framework. Different frameworks serve different needs. For example, you might modify an existing application to expose the application’s API as Rest endpoints. Or, you might modify that application to consume somebody else’s REST endpoints. You might develop a new application or a standalone microservice. And you might even write a serverless function meant to reside in the cloud, for example, an Amazon Web Services (AWS) Lambda function. Diverse needs dictate different solutions. In this article, we compare several leading Java Rest frameworks. We then compare several leading microservice frameworks that use those REST frameworks.

Top 10 Best Java REST and Microservice Frameworks Read More