0Pricing
Java Academy · Lesson

Mini Project: REST API

Build a small REST API with DTO, controller, and service.

Intro

Mini project: Build a simple REST API to manage users. You will create a DTO, controller, and service.

Code: DTO

Start with a DTO to represent the user data.

public class UserDto {
  private String name;
  private int age;
  // getters and setters omitted for brevity
}

All lessons in this course

  1. Project Setup & Starters
  2. DTOs & Validation
  3. Mini Project: REST API
← Back to Java Academy