Package org.springdoc.core.data
Class DataRestResponseService
java.lang.Object
org.springdoc.core.data.DataRestResponseService
The type Data rest response builder.
- Author:
- bnasslahsen
-
Constructor Summary
ConstructorDescriptionDataRestResponseService
(GenericResponseService genericResponseService, SpringDocDataRestUtils springDocDataRestUtils) Instantiates a new Data rest response builder. -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildEntityResponse
(io.swagger.v3.oas.models.Operation operation, org.springframework.web.method.HandlerMethod handlerMethod, io.swagger.v3.oas.models.OpenAPI openAPI, org.springframework.web.bind.annotation.RequestMethod requestMethod, String operationPath, MethodAttributes methodAttributes, DataRestRepository dataRestRepository, org.springframework.data.rest.core.mapping.ResourceMetadata resourceMetadata) Build entity response.void
buildSearchResponse
(io.swagger.v3.oas.models.Operation operation, org.springframework.web.method.HandlerMethod handlerMethod, io.swagger.v3.oas.models.OpenAPI openAPI, org.springframework.data.rest.core.mapping.MethodResourceMapping methodResourceMapping, Class<?> domainType, MethodAttributes methodAttributes, org.springframework.data.rest.core.mapping.ResourceMetadata resourceMetadata, DataRestRepository dataRestRepository) Build search response.
-
Constructor Details
-
DataRestResponseService
public DataRestResponseService(GenericResponseService genericResponseService, SpringDocDataRestUtils springDocDataRestUtils) Instantiates a new Data rest response builder.- Parameters:
genericResponseService
- the generic response builderspringDocDataRestUtils
- the spring doc data rest utils
-
-
Method Details
-
buildSearchResponse
public void buildSearchResponse(io.swagger.v3.oas.models.Operation operation, org.springframework.web.method.HandlerMethod handlerMethod, io.swagger.v3.oas.models.OpenAPI openAPI, org.springframework.data.rest.core.mapping.MethodResourceMapping methodResourceMapping, Class<?> domainType, MethodAttributes methodAttributes, org.springframework.data.rest.core.mapping.ResourceMetadata resourceMetadata, DataRestRepository dataRestRepository) Build search response.- Parameters:
operation
- the operationhandlerMethod
- the handler methodopenAPI
- the open apimethodResourceMapping
- the method resource mappingdomainType
- the domain typemethodAttributes
- the method attributesresourceMetadata
- the resource metadatadataRestRepository
- the data rest repository
-
buildEntityResponse
public void buildEntityResponse(io.swagger.v3.oas.models.Operation operation, org.springframework.web.method.HandlerMethod handlerMethod, io.swagger.v3.oas.models.OpenAPI openAPI, org.springframework.web.bind.annotation.RequestMethod requestMethod, String operationPath, MethodAttributes methodAttributes, DataRestRepository dataRestRepository, org.springframework.data.rest.core.mapping.ResourceMetadata resourceMetadata) Build entity response.- Parameters:
operation
- the operationhandlerMethod
- the handler methodopenAPI
- the open apirequestMethod
- the request methodoperationPath
- the operation pathmethodAttributes
- the method attributesdataRestRepository
- the data rest repositoryresourceMetadata
- the resource metadata
-