Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Advanced RESTful Techniques in Spring Boot

via CodeSignal

Overview

In this chapter, you will learn advanced techniques for building RESTful APIs, including request validation, exception handling, working with complex request bodies, and customizing response headers. These techniques will help you create more robust and user-friendly APIs.

Syllabus

  • Unit 1: Validating Request Data
    • Validating Requests in Spring Boot
    • Change ToDo Title Length Constraint
    • Fixing Validation for ToDo Item Titles
    • Annotating TodoItem for Data Validation
  • Unit 2: Exception Handling in Spring Boot
    • Global Exception Handling Magic
    • Handling Custom Exceptions with @ExceptionHandler
    • Global Exception Handling using @ControllerAdvice
    • Fixing the issue in Exception Handling with ResponseStatusException
  • Unit 3: Content Negotiation in Spring Boot
    • Understanding Content Negotiation in Spring Boot
    • Configure Content Negotiation with Request Parameters
    • Implementing Content Negotiation from Scratch
  • Unit 4: Working with Headers in Spring Boot
    • Handling Headers in Spring Boot
    • Refactor to Use HttpHeaders
    • Refactoring to Handle Optional Versioning Header
    • Adding ETag Header to To-Do Item Responses

Reviews

Start your review of Advanced RESTful Techniques in Spring Boot

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.