Package org.springdoc.core.data
Class DataRestOperationService
java.lang.Object
org.springdoc.core.data.DataRestOperationService
The type Data rest operation builder.
- Author:
- bnasslahsen
-
Constructor Summary
ConstructorsConstructorDescriptionDataRestOperationService(DataRestRequestService dataRestRequestService, DataRestTagsService tagsBuilder, DataRestResponseService dataRestResponseService, OperationService operationService) Instantiates a new Data rest operation builder. -
Method Summary
Modifier and TypeMethodDescriptionio.swagger.v3.oas.models.OperationbuildOperation(org.springframework.web.method.HandlerMethod handlerMethod, DataRestRepository dataRestRepository, io.swagger.v3.oas.models.OpenAPI openAPI, org.springframework.web.bind.annotation.RequestMethod requestMethod, String operationPath, MethodAttributes methodAttributes, org.springframework.data.rest.core.mapping.ResourceMetadata resourceMetadata, org.springframework.data.rest.core.mapping.MethodResourceMapping methodResourceMapping, ControllerType controllerType) Build operation.
-
Constructor Details
-
DataRestOperationService
public DataRestOperationService(DataRestRequestService dataRestRequestService, DataRestTagsService tagsBuilder, DataRestResponseService dataRestResponseService, OperationService operationService) Instantiates a new Data rest operation builder.- Parameters:
dataRestRequestService- the data rest request buildertagsBuilder- the tags builderdataRestResponseService- the data rest response builderoperationService- the operation service
-
-
Method Details
-
buildOperation
public io.swagger.v3.oas.models.Operation buildOperation(org.springframework.web.method.HandlerMethod handlerMethod, DataRestRepository dataRestRepository, io.swagger.v3.oas.models.OpenAPI openAPI, org.springframework.web.bind.annotation.RequestMethod requestMethod, String operationPath, MethodAttributes methodAttributes, org.springframework.data.rest.core.mapping.ResourceMetadata resourceMetadata, org.springframework.data.rest.core.mapping.MethodResourceMapping methodResourceMapping, ControllerType controllerType) Build operation.- Parameters:
handlerMethod- the handler methoddataRestRepository- the repository data restopenAPI- the open apirequestMethod- the request methodoperationPath- the operation pathmethodAttributes- the method attributesresourceMetadata- the resource metadatamethodResourceMapping- the method resource mappingcontrollerType- the controller type- Returns:
- the operation
-