Uses of Record Class
com.example.springrest.dto.ProductResponse
Packages that use ProductResponse
Package
Description
REST controllers that define the public API of the application.
Provides MapStruct-based mappers for converting between
domain entities and Data Transfer Objects (DTOs).
-
Uses of ProductResponse in com.example.springrest.controllers
Methods in com.example.springrest.controllers that return types with arguments of type ProductResponseModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<ProductResponse> ProductController.create
(@Valid ProductRequest request) Creates a new product.org.springframework.data.domain.Page
<ProductResponse> ProductController.getAll
(org.springframework.data.domain.Pageable pageable) Returns a paginated list of products.org.springframework.http.ResponseEntity
<ProductResponse> Reads a product by id.org.springframework.data.domain.Page
<ProductResponse> Searches products by (case-insensitive) name substring.org.springframework.http.ResponseEntity
<ProductResponse> ProductController.update
(@Min(value=1L,message="ID must be >= 1") Long id, @Valid ProductRequest request) Replaces a product’s name and price. -
Uses of ProductResponse in com.example.springrest.mappers
Methods in com.example.springrest.mappers that return ProductResponseModifier and TypeMethodDescriptionProductMapper.toResponse
(Product entity) Creates aProductResponse
DTO suitable for API responses.