Class DataRestResponseService

java.lang.Object
org.springdoc.core.data.DataRestResponseService

public class DataRestResponseService extends Object
The type Data rest response builder.
Author:
bnasslahsen
  • Constructor Summary

    Constructors
    Constructor
    Description
    DataRestResponseService(GenericResponseService genericResponseService, SpringDocDataRestUtils springDocDataRestUtils)
    Instantiates a new Data rest response builder.
  • Method Summary

    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, 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, MethodAttributes methodAttributes, org.springframework.data.rest.core.mapping.ResourceMetadata resourceMetadata, DataRestRepository dataRestRepository)
    Build search response.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DataRestResponseService

      public DataRestResponseService(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 Details

    • 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, 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, 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