Uses of Class
io.github.og4dev.dto.ApiResponse

Packages that use ApiResponse
Package
Description
Data Transfer Object (DTO) classes for standardized API responses.
  • Uses of ApiResponse in io.github.og4dev.dto

    Methods in io.github.og4dev.dto that return ApiResponse
    Modifier and Type
    Method
    Description
    ApiResponse.ApiResponseBuilder.build()
    Builds the ApiResponse instance.
    Methods in io.github.og4dev.dto that return types with arguments of type ApiResponse
    Modifier and Type
    Method
    Description
    static <T> org.springframework.http.ResponseEntity<ApiResponse<T>>
    ApiResponse.created(String message, T content)
    Creates a CREATED (201) response with a message and content.
    static org.springframework.http.ResponseEntity<ApiResponse<Void>>
    ApiResponse.status(String message, org.springframework.http.HttpStatus status)
    Creates a response with a custom HTTP status and message only.
    static <T> org.springframework.http.ResponseEntity<ApiResponse<T>>
    ApiResponse.status(String message, T content, org.springframework.http.HttpStatus status)
    Creates a response with a custom HTTP status, message, and content.
    static org.springframework.http.ResponseEntity<ApiResponse<Void>>
    ApiResponse.success(String message)
    Creates a SUCCESS (200) response with only a message.
    static <T> org.springframework.http.ResponseEntity<ApiResponse<T>>
    ApiResponse.success(String message, T content)
    Creates a SUCCESS (200) response with a message and content.