String opName = method.getName();
SwaggerDataType returnTypeInfo = convertToSwaggerType(models, getReturnType(method));
List<SwaggerParameter> params = documentParameters(models, method);
ResponseMessages responseMessages = findAnnotation(ResponseMessages.class, annotations);
List<SwaggerResponseMessage> rms = null;
if (responseMessages != null && responseMessages.value() != null) {
rms = new ArrayList<SwaggerResponseMessage>();
for (ResponseMessage responseMessage : responseMessages.value()) {
rms.add(new SwaggerResponseMessage(responseMessage.code(), responseMessage.message()));
}
}
String doc = getDescription(findAnnotation(Description.class, annotations));