Class 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
      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.
    • Constructor Detail

      • DataRestResponseService

        public DataRestResponseService​(org.springdoc.core.GenericResponseService genericResponseService,
                                       SpringDocDataRestUtils springDocDataRestUtils)
        Instantiates a new Data rest response builder.
        Parameters:
        genericResponseService - the generic response builder
        springDocDataRestUtils - 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 operation
        handlerMethod - the handler method
        openAPI - the open api
        methodResourceMapping - the method resource mapping
        domainType - the domain type
        methodAttributes - the method attributes
        resourceMetadata - the resource metadata
        dataRestRepository - 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 operation
        handlerMethod - the handler method
        openAPI - the open api
        requestMethod - the request method
        operationPath - the operation path
        methodAttributes - the method attributes
        dataRestRepository - the data rest repository
        resourceMetadata - the resource metadata