Class RequestBodyService


  • public class RequestBodyService
    extends Object
    The type Request body builder.
    Author:
    bnasslahsen
    • 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 body
        requestBodyOp - the request body op
        methodAttributes - the method attributes
        components - the components
        jsonViewAnnotation - 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 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)
        Build request body from doc optional.
        Parameters:
        requestBody - the request body
        methodAttributes - the method attributes
        components - the components
        jsonViewAnnotation - 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 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