.stream(); } else { parameter.setName(it.name()); parameter.setRequired(!it.optional()); parameter.setDescription(property.getDescription());
parameter.setName(propertyDescriptor.getDisplayName());
parameter.setName(parameterNames[i]);
param.setName( ConverterUtils.getStringLiteralValue(paramAttributes.get(ConverterConstants.ATTR_NAME)));
private Map<String, Path> getPaths() { Map<String, Path> paths = new HashMap<>(); Path path = new Path(); Operation post = new Operation(); post.setOperationId("configure"); post.setConsumes(Arrays.asList("application/json", "application/xml")); post.setProduces(Arrays.asList("application/json", "application/xml")); List<Parameter> parameters = new ArrayList<>(); Parameter in = new BodyParameter().schema(new RefModel("#/definitions/inputs")); in.setRequired(true); in.setName(INPUTS); parameters.add(in); post.setParameters(parameters); Map<String, Response> responses = new HashMap<>(); Response response = new Response().description("Success"); responses.put("200", response); Response failureResponse = new Response().description("Failure"); responses.put("400", failureResponse); post.setResponses(responses); path.setPost(post); paths.put("/operations/config-selfservice-api:configure", path); return paths; }
private void applyParametersV2(ReaderContext context, Operation operation, String name, Type type,Class<?> cls, Annotation[] annotations, Annotation[] interfaceParamAnnotations) { Annotation apiParam = null; if (annotations != null) { for (Annotation annotation : interfaceParamAnnotations) { if (annotation instanceof ApiParam) { apiParam = annotation; break; } } if (null == apiParam) { for (Annotation annotation : annotations) { if (annotation instanceof ApiParam) { apiParam = annotation; break; } } } } final Parameter parameter = readParam(context.getSwagger(), type,cls, null == apiParam ? null : (ApiParam) apiParam); if (parameter != null) { parameter.setName(null == name ? parameter.getName() : name); operation.parameter(parameter); } }
parameter.setRequired(param.required()); if (param.value() != null && !"".equals(param.value())) { parameter.setName(param.value());
.stream(); } else { parameter.setName(it.name()); parameter.setRequired(!it.optional()); parameter.setDescription(property.getDescription());
output.setName(value);
result.setName(param.name()); result.setRequired(required); param.doc().ifPresent(result::setDescription);
pm.setName(pName); op.addParameter(pm);
output.setName(param.getName()); output.setDescription(param.getDescription()); if (param.getRequired() != null) {