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
- Project Setup & Starters
- DTOs & Validation
- Mini Project: REST API