mirror of https://github.com/apache/cloudstack.git
Added since version to API response docs
Reviewed-By: Nitin
This commit is contained in:
parent
6e5b3f0615
commit
01b745d75d
|
|
@ -33,4 +33,6 @@ public @interface Param {
|
|||
Class<?> responseObject() default Object.class;
|
||||
|
||||
boolean includeInApiDoc() default true;
|
||||
|
||||
String since() default "";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -499,6 +499,10 @@ public class ApiXmlDocWriter {
|
|||
respArg.setDescription(description);
|
||||
}
|
||||
|
||||
if(!paramAnnotation.since().isEmpty()){
|
||||
respArg.setSinceVersion(paramAnnotation.since());
|
||||
}
|
||||
|
||||
if (fieldClass != null) {
|
||||
Class<?> superClass = fieldClass.getSuperclass();
|
||||
if (superClass != null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue