Package org.springdoc.core
Class RequestBodyService
- java.lang.Object
-
- org.springdoc.core.RequestBodyService
-
public class RequestBodyService extends Object
The type Request body builder.- Author:
- bnasslahsen
-
-
Constructor Summary
Constructors Constructor Description RequestBodyService(GenericParameterService parameterBuilder)Instantiates a new Request body builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)Build request body from doc optional.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)Build request body from doc optional.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.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)Build request body from doc optional.voidcalculateRequestBodyInfo(io.swagger.v3.oas.models.Components components, MethodAttributes methodAttributes, ParameterInfo parameterInfo, RequestBodyInfo requestBodyInfo)Calculate request body info.
-
-
-
Constructor Detail
-
RequestBodyService
public RequestBodyService(GenericParameterService parameterBuilder)
Instantiates a new Request body builder.- Parameters:
parameterBuilder- the parameter builder
-
-
Method Detail
-
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)
Build request body from doc optional.- Parameters:
requestBody- the request bodyrequestBodyOp- the request body opmethodAttributes- the method attributescomponents- the componentsjsonViewAnnotation- the json view annotation- 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 bodymethodAttributes- the method attributescomponents- 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)
Build request body from doc optional.- Parameters:
requestBody- the request bodymethodAttributes- the method attributescomponents- the componentsjsonViewAnnotation- the json view annotation- 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)
Build request body from doc optional.- Parameters:
requestBody- the request bodyrequestBodyOp- the request body opmethodAttributes- the method attributescomponents- 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 componentsmethodAttributes- the method attributesparameterInfo- the parameter inforequestBodyInfo- the request body info
-
-