io.swagger.model.ApiInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-all Show documentation
Show all versions of swagger-all Show documentation
swagger-all is a rebundled verison of Swagger as one OSGi bundle.
The newest version!
package io.swagger.model;
import io.swagger.models.Contact;
import io.swagger.models.Info;
import io.swagger.models.License;
/**
* legacy support for swagger 1.2 deployments
**/
@Deprecated
public class ApiInfo extends Info {
public ApiInfo() {
}
public ApiInfo(
String title,
String description,
String tosURL,
String contactEmail,
String licenseName,
String licenseUrl) {
setTitle(title);
setDescription(description);
setTermsOfService(tosURL);
setContact(new Contact().name(contactEmail));
setLicense(new License().name(licenseName).url(licenseUrl));
}
}