Class DataRestOperationService


  • public class DataRestOperationService
    extends Object
    The type Data rest operation builder.
    Author:
    bnasslahsen
    • Constructor Detail

      • DataRestOperationService

        public DataRestOperationService​(DataRestRequestService dataRestRequestService,
                                        DataRestTagsService tagsBuilder,
                                        DataRestResponseService dataRestResponseService,
                                        org.springdoc.core.OperationService operationService)
        Instantiates a new Data rest operation builder.
        Parameters:
        dataRestRequestService - the data rest request builder
        tagsBuilder - the tags builder
        dataRestResponseService - the data rest response builder
        operationService - the operation service
    • Method Detail

      • 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,
                                                                 org.springdoc.core.MethodAttributes methodAttributes,
                                                                 org.springframework.data.rest.core.mapping.ResourceMetadata resourceMetadata,
                                                                 org.springframework.data.rest.core.mapping.MethodResourceMapping methodResourceMapping,
                                                                 ControllerType controllerType)
        Build operation operation.
        Parameters:
        handlerMethod - the handler method
        dataRestRepository - the repository data rest
        openAPI - the open api
        requestMethod - the request method
        operationPath - the operation path
        methodAttributes - the method attributes
        resourceMetadata - the resource metadata
        methodResourceMapping - the method resource mapping
        controllerType - the controller type
        Returns:
        the operation