Hi everyone,
I'm using swagger inside a maven project to document REST services.
Inside the REST services I had an interface with this configuration:
@JsonSubTypes({
@JsonSubTypes.Type(value=RestDataSource.class, name="rest")
})
public interface DataSource {
}
And this implementation :
@JsonTypeName("rest")
public class RestDataSource implements DataSource {
@ApiProperty(required = true, notes = " It is the url of the service.")
private String urlResource;
}
I want to document it. Hence , I would like to know how to use annotations on Interfaces with swagger? Is there any specific annotation to management it?
Thank you for your help.
Best regards.