Package io.github.og4dev.dto
package io.github.og4dev.dto
Data Transfer Object (DTO) classes for standardized API responses.
This package contains classes for structuring API responses in a consistent, type-safe format.
The main class ApiResponse provides a generic wrapper that includes:
- HTTP status code
- Human-readable message
- Response content (generic type T)
- Automatic UTC timestamp generation
All response objects are immutable and thread-safe, using a builder pattern for flexible construction.
Factory methods like success(), created(), and status() provide convenient
ways to create responses without manual building.
- Since:
- 1.0.0
- Version:
- 1.3.0
- Author:
- Pasindu OG
-
ClassesClassDescriptionApiResponse<T>Standard API Response wrapper for Spring Boot applications.Builder class for constructing ApiResponse instances.