private Parameter buildRequiredUUIDParameter(String name, String desc) { return new PathParameter().name(name).description(desc).type("string"); }
/** * Build a {@link PathParameter} Swagger object defined by {@link ApiImplicitParam} * to use for documentation. * * @param apiParam The annotation which documents the parameter. * @return The {@link PathParameter} object to be used in {@link Swagger} */ public static PathParameter pathParameter(ApiImplicitParam apiParam) { return new PathParameter() .name(apiParam.name()) .description(apiParam.value()) .required(apiParam.required()) .type(apiParam.dataType()); }
PathParameter pathParameter = new PathParameter().name(paramName).type(dataType); pathParameter.setRequired(true); operation.addParameter(pathParameter);
PathParameter pathParameter = new PathParameter().name(paramName).type(dataType); pathParameter.setRequired(true); operation.addParameter(pathParameter);
io.swagger.models.parameters.Parameter pm = null; if (RestRequestProcessor.isPathParameter(rm.fn, pName)) { pm = new PathParameter().type(param.getType()).required(true); } else { String aType = RestRequestProcessor.getParamAnnotationType(rm.fn, pName); "Please add custom client code to pass the parameter properly.").items(new MapProperty(new StringProperty())).type(param.getType());
.description(PATH_PARAM_VALUE) .required(false) .type(SwaggerDocumentation.DataTypes.DATA_TYPE_STRING);