Spring Boot REST API Projects with Code Examples

At in28Minutes, we have created 8 Spring Boot REST API projects with code examples on Github. We have 10+ tutorial articles explaining these projects. These code examples will help beginners and experts to learn and gain expertise at developing RESTful Services with Spring Boot.

Creating a SOAP Web Service with Spring Boot Starter Web Services

Let's learn how to create a SOAP Web Service with Spring Boot Starter Web Services. We will take a Contract First approach by definining an XSD and exposing a WSDL from it.

Versioning RESTful Services

Learn why versioning is needed and how you can version your REST API. We will look at 4 ways of versioning and also compare the different approaches.

Spring Boot and Swagger - Documenting RESTful Services

Learn how to use Swagger with Spring Boot to document your RESTful services. We will learn how to expose automated swagger documentation from your REST API. We will also add documentation to the REST API with swagger annotations.

Spring Boot and Content Negotiation - XML and JSON Representations

Learn how to implement Content Negotiation for a REST API/Service with Spring Boot. Content Negotiation helps the Consumer and Provider interact about the data exchange format. In this article, we will expose both XML and JSON representations.

Spring Boot - HATEOAS for RESTful Services

HATEOAS stands for "Hypermedia as the engine of application state". Its a complicated acronym. In this article, we decode HATEOAS for you and help you learn how to implement HATEOAS for a REST API/Service with Spring Boot.

Implementing Validation for RESTful Services with Spring Boot

Validating a request is a critical component of a Great REST API. In this tutorial, Let's explore how to do implement effective validation for a RESTful Service with Spring Boot. We will use Bean Validation API and Hibernate Validator as the implementation.

Spring Boot Exception(Error) Handling for RESTful Services

Great REST APIs have Great Exception Handling. You don't want to leave your API consumer hanging not knowing what to do when an error occurs. Let's learn how to implement effective exception handling for a REST API/Service with Spring Boot. You will understand and implement HTTP Error Response statuses based on the type of error.

Creating a CRUD REST API/Service with Spring Boot, JPA and Hibernate

Creating a complete CRUD API with GET, POST, PUT and DELETE is the first step to developing RESTful Services, In this tutorial, let's learn to create an awesome CRUD REST API with Spring Boot, Spring MVC, JPA and Hibernate.

Spring Interview Questions

Let's take a quick look at some of the important Spring concepts with examples to get ready for a Spring Interview. We will look at defining beans with Spring (@Component, @Service, etc), auto wiring them (@Autowired), @ComponentScan and understand the basics of Application Context and Bean Factory. We will also look a few important Spring MVC interview questions.