Hi,

Im facing problem when i generate the APi Doc.

*        My response Class*

        @XmlElement(name = "*data*")
@ApiModelProperty(name = "*data*", value = "Which holds response data")
private EmployeeIdWrapperDTO *data*;
* my DTO - Note : This is the common DTO which i'm referring in other 
places too.*

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "employeeIds")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "employeeIds")
public class EmployeeIdWrapperDTO implements Serializable
{

Below is the API Spec got created. 

</employeeResponse>
<employeeIds> <employeeId>1</employeeId> </employeeIds> </employeeResponse>

but i need

</employeeResponse>
<data> <employeeId>1</employeeId> </data> </employeeResponse>

Please help me, Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to