- Common ways to obtain ApiInfo
private void myMethod () {ApiInfo a =
ResourceListing resourceListing;resourceListing.getInfo()
- Smart code suggestions by Codota
}
if (listing.getInfo() != null) { Contact contact = new Contact(); contact.setEmail(listing.getInfo().getContact()); definition.setContact(contact); license.setName(listing.getInfo().getLicense()); license.setUrl(listing.getInfo().getLicenseUrl()); definition.setLicense(license); contract.setName(listing.getInfo().getTitle()); contract.setDescription(listing.getInfo().getDescription());
listing.setInfo(new ApiInfo()); listing.setSwaggerVersion(SWAGGER_VERSION); if (definition.getContact() != null) { listing.getInfo().setContact(definition.getContact().getEmail()); listing.getInfo().setLicense(definition.getLicense().getName()); listing.getInfo().setLicenseUrl(definition.getLicense().getUrl()); listing.getInfo().setTitle(definition.getContract().getName()); listing.getInfo().setDescription( definition.getContract().getDescription());
listing.setInfo(new ApiInfo()); listing.setSwaggerVersion(SWAGGER_VERSION); if (definition.getContact() != null) { listing.getInfo().setContact(definition.getContact().getEmail()); listing.getInfo().setLicense(definition.getLicense().getName()); listing.getInfo().setLicenseUrl(definition.getLicense().getUrl()); listing.getInfo().setTitle(definition.getContract().getName()); listing.getInfo().setDescription( definition.getContract().getDescription());
listing.setInfo(new ApiInfo()); listing.setSwaggerVersion(SWAGGER_VERSION); if (definition.getContact() != null) { listing.getInfo().setContact(definition.getContact().getEmail()); listing.getInfo().setLicense(definition.getLicense().getName()); listing.getInfo().setLicenseUrl(definition.getLicense().getUrl()); listing.getInfo().setTitle(definition.getContract().getName()); listing.getInfo().setDescription( definition.getContract().getDescription());
if (listing.getInfo() != null) { Contact contact = new Contact(); contact.setEmail(listing.getInfo().getContact()); definition.setContact(contact); license.setName(listing.getInfo().getLicense()); license.setUrl(listing.getInfo().getLicenseUrl()); definition.setLicense(license); contract.setName(listing.getInfo().getTitle()); contract.setDescription(listing.getInfo().getDescription());
listing.setInfo(new ApiInfo()); listing.setSwaggerVersion(SWAGGER_VERSION); if (definition.getContact() != null) { listing.getInfo().setContact(definition.getContact().getEmail()); listing.getInfo().setLicense(definition.getLicense().getName()); listing.getInfo().setLicenseUrl(definition.getLicense().getUrl()); listing.getInfo().setTitle(definition.getContract().getName()); listing.getInfo().setDescription( definition.getContract().getDescription());
if (listing.getInfo() != null) { Contact contact = new Contact(); contact.setEmail(listing.getInfo().getContact()); definition.setContact(contact); license.setName(listing.getInfo().getLicense()); license.setUrl(listing.getInfo().getLicenseUrl()); definition.setLicense(license); contract.setName(listing.getInfo().getTitle()); contract.setDescription(listing.getInfo().getDescription());
if (listing.getInfo() != null) { Contact contact = new Contact(); contact.setEmail(listing.getInfo().getContact()); definition.setContact(contact); license.setName(listing.getInfo().getLicense()); license.setUrl(listing.getInfo().getLicenseUrl()); definition.setLicense(license); contract.setName(listing.getInfo().getTitle()); contract.setDescription(listing.getInfo().getDescription());