Package org.springdoc.data.rest.core
Class DataRestResponseService
- java.lang.Object
-
- org.springdoc.data.rest.core.DataRestResponseService
-
public class DataRestResponseService extends Object
The type Data rest response builder.- Author:
- bnasslahsen
-
-
Constructor Summary
Constructors Constructor Description DataRestResponseService(org.springdoc.core.GenericResponseService genericResponseService, SpringDocDataRestUtils springDocDataRestUtils)Instantiates a new Data rest response builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildEntityResponse(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, org.springdoc.core.MethodAttributes methodAttributes, DataRestRepository dataRestRepository, org.springframework.data.rest.core.mapping.ResourceMetadata resourceMetadata)Build entity response.voidbuildSearchResponse(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, org.springdoc.core.MethodAttributes methodAttributes, org.springframework.data.rest.core.mapping.ResourceMetadata resourceMetadata, DataRestRepository dataRestRepository)Build search response.
-
-
-
Constructor Detail
-
DataRestResponseService
public DataRestResponseService(org.springdoc.core.GenericResponseService genericResponseService, SpringDocDataRestUtils springDocDataRestUtils)Instantiates a new Data rest response builder.- Parameters:
genericResponseService- the generic response builderspringDocDataRestUtils- the spring doc data rest utils
-
-
Method Detail
-
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, org.springdoc.core.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, org.springdoc.core.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
-
-