REST with Spring Tutorial

Building a REST API is not a trivial task – from the high level RESTful constraints down to the the nitty-gritty of making everything work and work well.

Spring has made REST a first class citizen back with the 3.0 release and the platform has been maturing in leaps and bounds since then. With the Spring 4.0 release, REST is now battle hardened and fully mature.

With this guide, my aim is to organize the mountains of information that are available on the subject and guide you through properly building an API.

The guide starts with the basics – bootstrapping the REST API, the Spring MVC Configuration, testing the live API.

It then dives into the more advanced areas of REST – HATEOAS and pagination, Error Handling and Security (Basic and Digest Authentication).

image

REST API Basics

image

REST API Advanced Topics

  • +
    link:/bootstraping-a-web-application-with-spring-and-java-based-configurationRequest Method Not Supported (405) in Spring*

  • +
    link:/bootstraping-a-web-application-with-spring-and-java-based-configurationETags for REST*

  • +
    link:/building-a-restful-web-service-with-spring-and-java-based-configurationREST API Discoverability and HATEOAS*

  • +
    link:/securing-a-restful-web-service-with-spring-securityREST API Discoverability*

  • +
    link:/bootstraping-a-web-application-with-spring-and-java-based-configurationVersioning a REST API*

  • +
    link:/building-a-restful-web-service-with-spring-and-java-based-configurationBuilding a REST Query Language (Series)*

  • +
    link:/securing-a-restful-web-service-with-spring-securityApply CQRS to a Spring REST API*

  • +
    link:/rest-api-pagination-in-springGenerate Spring Boot REST Client with Swagger**

image

Test and Consume the API

image

Other Spring Tutorials

  • +
    Persistence with Spring Tutorial
    Building the Persistence Layer of an application with Spring and Hibernate, JPA, Spring Data, etc

  • +
    Spring Exceptions Tutorial 
    Common Exceptions in Spring with examples – why they occur and how to solve them quickly

  • +
    [.thrv-advanced-inline-text .tve_editable .tcb-styled-list-icon-text .tcb-no-delete .tcb-no-save]#Security with Spring 
    How to Secure an MVC project, Login and Logout, how to Secure a REST Service, Basic and Digest Authentication with Spring Security
    #

Leave a Reply

Your email address will not be published.