public class DataRestRequestService extends Object
| Constructor and Description |
|---|
DataRestRequestService(org.springframework.core.LocalVariableTableParameterNameDiscoverer localSpringDocParameterNameDiscoverer,
org.springdoc.core.GenericParameterService parameterBuilder,
org.springdoc.core.RequestBodyService requestBodyService,
org.springdoc.core.AbstractRequestService requestBuilder)
Instantiates a new Data rest request builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildCommonParameters(Class<?> domainType,
io.swagger.v3.oas.models.OpenAPI openAPI,
org.springframework.web.bind.annotation.RequestMethod requestMethod,
org.springdoc.core.MethodAttributes methodAttributes,
io.swagger.v3.oas.models.Operation operation,
String[] pNames,
org.springframework.core.MethodParameter[] parameters)
Build common parameters.
|
io.swagger.v3.oas.models.parameters.Parameter |
buildParameterFromDoc(io.swagger.v3.oas.annotations.Parameter parameterDoc,
io.swagger.v3.oas.models.Components components,
com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
Build parameter from doc parameter.
|
void |
buildParameters(Class<?> domainType,
io.swagger.v3.oas.models.OpenAPI openAPI,
org.springframework.web.method.HandlerMethod handlerMethod,
org.springframework.web.bind.annotation.RequestMethod requestMethod,
org.springdoc.core.MethodAttributes methodAttributes,
io.swagger.v3.oas.models.Operation operation,
org.springframework.data.rest.core.mapping.ResourceMetadata resourceMetadata)
Build parameters.
|
public DataRestRequestService(org.springframework.core.LocalVariableTableParameterNameDiscoverer localSpringDocParameterNameDiscoverer,
org.springdoc.core.GenericParameterService parameterBuilder,
org.springdoc.core.RequestBodyService requestBodyService,
org.springdoc.core.AbstractRequestService requestBuilder)
localSpringDocParameterNameDiscoverer - the local spring doc parameter name discovererparameterBuilder - the parameter builderrequestBodyService - the request body builderrequestBuilder - the request builderpublic void buildParameters(Class<?> domainType, io.swagger.v3.oas.models.OpenAPI openAPI, org.springframework.web.method.HandlerMethod handlerMethod, org.springframework.web.bind.annotation.RequestMethod requestMethod, org.springdoc.core.MethodAttributes methodAttributes, io.swagger.v3.oas.models.Operation operation, org.springframework.data.rest.core.mapping.ResourceMetadata resourceMetadata)
domainType - the domain typeopenAPI - the open apihandlerMethod - the handler methodrequestMethod - the request methodmethodAttributes - the method attributesoperation - the operationresourceMetadata - the resource metadatapublic void buildCommonParameters(Class<?> domainType, io.swagger.v3.oas.models.OpenAPI openAPI, org.springframework.web.bind.annotation.RequestMethod requestMethod, org.springdoc.core.MethodAttributes methodAttributes, io.swagger.v3.oas.models.Operation operation, String[] pNames, org.springframework.core.MethodParameter[] parameters)
domainType - the domain typeopenAPI - the open apirequestMethod - the request methodmethodAttributes - the method attributesoperation - the operationpNames - the p namesparameters - the parameterspublic io.swagger.v3.oas.models.parameters.Parameter buildParameterFromDoc(io.swagger.v3.oas.annotations.Parameter parameterDoc,
io.swagger.v3.oas.models.Components components,
com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
parameterDoc - the parameter doccomponents - the componentsjsonViewAnnotation - the json view annotationCopyright © 2021. All rights reserved.