Class RequestBodyService

java.lang.Object
org.springdoc.core.service.RequestBodyService

public class RequestBodyService extends Object
The type Request body builder.
Author:
bnasslahsen
  • Constructor Details

    • RequestBodyService

      public RequestBodyService(GenericParameterService parameterBuilder, PropertyResolverUtils propertyResolverUtils)
      Instantiates a new Request body builder.
      Parameters:
      parameterBuilder - the parameter builder
      propertyResolverUtils - the property resolver utils
  • Method Details

    • buildRequestBodyFromDoc

      public Optional<io.swagger.v3.oas.models.parameters.RequestBody> buildRequestBodyFromDoc(io.swagger.v3.oas.annotations.parameters.RequestBody requestBody, io.swagger.v3.oas.models.parameters.RequestBody requestBodyOp, MethodAttributes methodAttributes, io.swagger.v3.oas.models.Components components, com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation, Locale locale)
      Build request body from doc optional.
      Parameters:
      requestBody - the request body
      requestBodyOp - the request body op
      methodAttributes - the method attributes
      components - the components
      jsonViewAnnotation - the json view annotation
      locale - the locale
      Returns:
      the optional
    • buildRequestBodyFromDoc

      public Optional<io.swagger.v3.oas.models.parameters.RequestBody> buildRequestBodyFromDoc(io.swagger.v3.oas.annotations.parameters.RequestBody requestBody, MethodAttributes methodAttributes, io.swagger.v3.oas.models.Components components)
      Build request body from doc optional.
      Parameters:
      requestBody - the request body
      methodAttributes - the method attributes
      components - the components
      Returns:
      the optional
    • buildRequestBodyFromDoc

      public Optional<io.swagger.v3.oas.models.parameters.RequestBody> buildRequestBodyFromDoc(io.swagger.v3.oas.annotations.parameters.RequestBody requestBody, MethodAttributes methodAttributes, io.swagger.v3.oas.models.Components components, com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation, Locale locale)
      Build request body from doc optional.
      Parameters:
      requestBody - the request body
      methodAttributes - the method attributes
      components - the components
      jsonViewAnnotation - the json view annotation
      locale - the locale
      Returns:
      the optional
    • buildRequestBodyFromDoc

      public Optional<io.swagger.v3.oas.models.parameters.RequestBody> buildRequestBodyFromDoc(io.swagger.v3.oas.annotations.parameters.RequestBody requestBody, io.swagger.v3.oas.models.parameters.RequestBody requestBodyOp, MethodAttributes methodAttributes, io.swagger.v3.oas.models.Components components, Locale locale)
      Build request body from doc optional.
      Parameters:
      requestBody - the request body
      requestBodyOp - the request body op
      methodAttributes - the method attributes
      components - the components
      Returns:
      the optional
    • calculateRequestBodyInfo

      public void calculateRequestBodyInfo(io.swagger.v3.oas.models.Components components, MethodAttributes methodAttributes, ParameterInfo parameterInfo, RequestBodyInfo requestBodyInfo)
      Calculate request body info.
      Parameters:
      components - the components
      methodAttributes - the method attributes
      parameterInfo - the parameter info
      requestBodyInfo - the request body info