Search in sources :

Example 46 with QueryParameter

use of io.swagger.models.parameters.QueryParameter in project java-chassis by ServiceComb.

the class SpringmvcDefaultParameterProcessor method process.

@Override
public void process(OperationGenerator operationGenerator, int paramIdx) {
    String paramName = ParamUtils.getParameterName(operationGenerator.getProviderMethod(), paramIdx);
    QueryParameter queryParameter = new QueryParameter();
    queryParameter.setName(paramName);
    ParamUtils.setParameterType(operationGenerator.getSwagger(), operationGenerator.getProviderMethod(), paramIdx, queryParameter);
    operationGenerator.addProviderParameter(queryParameter);
}
Also used : QueryParameter(io.swagger.models.parameters.QueryParameter)

Aggregations

QueryParameter (io.swagger.models.parameters.QueryParameter)46 Test (org.testng.annotations.Test)40 Swagger (io.swagger.models.Swagger)16 PathParameter (io.swagger.models.parameters.PathParameter)16 Parameter (io.swagger.models.parameters.Parameter)15 BodyParameter (io.swagger.models.parameters.BodyParameter)12 HeaderParameter (io.swagger.models.parameters.HeaderParameter)9 Type (java.lang.reflect.Type)9 Method (java.lang.reflect.Method)8 BigDecimal (java.math.BigDecimal)7 Operation (io.swagger.models.Operation)6 StringProperty (io.swagger.models.properties.StringProperty)6 FormParameter (io.swagger.models.parameters.FormParameter)5 SerializableParameter (io.swagger.models.parameters.SerializableParameter)5 Reader (io.swagger.jaxrs.Reader)4 Path (io.swagger.models.Path)4 LongProperty (io.swagger.models.properties.LongProperty)4 RefProperty (io.swagger.models.properties.RefProperty)4 Contact (io.swagger.models.Contact)3 Info (io.swagger.models.Info)3