public class DataRestResponseService extends Object
| Constructor and Description |
|---|
DataRestResponseService(org.springdoc.core.GenericResponseService genericResponseService,
SpringDocDataRestUtils springDocDataRestUtils)
Instantiates a new Data rest response builder.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
public DataRestResponseService(org.springdoc.core.GenericResponseService genericResponseService,
SpringDocDataRestUtils springDocDataRestUtils)
genericResponseService - the generic response builderspringDocDataRestUtils - the spring doc data rest utilspublic 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)
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 repositorypublic 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)
operation - the operationhandlerMethod - the handler methodopenAPI - the open apirequestMethod - the request methodoperationPath - the operation pathmethodAttributes - the method attributesdataRestRepository - the data rest repositoryresourceMetadata - the resource metadataCopyright © 2021. All rights reserved.