private void convertInfo(io.swagger.annotations.Info infoAnnotation, Swagger swagger) { if (infoAnnotation == null) { return; } Info info = new Info(); info.setTitle(infoAnnotation.title()); info.setVersion(infoAnnotation.version()); info.setDescription(infoAnnotation.description()); info.setTermsOfService(infoAnnotation.termsOfService()); info.setContact(convertContact(infoAnnotation.contact())); info.setLicense(convertLicense(infoAnnotation.license())); info.getVendorExtensions().putAll(BaseReaderUtils.parseExtensions(infoAnnotation.extensions())); swagger.setInfo(info); }
info = @Info( title = "/ResourceTypes Endpoint Swagger Definition", version = "1.0", description = "SCIM 2.0 /ResourceTypes endpoint",
info = @Info( title = "/ServiceProviderConfig Endpoint Swagger Definition", version = "1.0", description = "SCIM 2.0 /ServiceProviderConfig endpoint",
private void setInfoFromAnnotation() { Info resultInfo = new Info(); for (Class<?> aClass : getValidClasses(SwaggerDefinition.class)) { SwaggerDefinition swaggerDefinition = AnnotationUtils.findAnnotation(aClass, SwaggerDefinition.class); io.swagger.annotations.Info infoAnnotation = swaggerDefinition.info(); Info info = new Info().title(infoAnnotation.title()) .description(emptyToNull(infoAnnotation.description())) .version(infoAnnotation.version()) .termsOfService(emptyToNull(infoAnnotation.termsOfService())) .license(from(infoAnnotation.license())) .contact(from(infoAnnotation.contact())); Map<String, Object> customExtensions = BaseReaderUtils.parseExtensions(infoAnnotation.extensions()); for (Map.Entry<String, Object> extension : customExtensions.entrySet()) { resultInfo.setVendorExtension(extension.getKey(), extension.getValue()); } resultInfo.mergeWith(info); } info = resultInfo; }
info = @Info( title = "Stockquote Swagger Definition", version = "1.0", description = "Stock quote service",
private void convertInfo(io.swagger.annotations.Info infoAnnotation, Swagger swagger) { if (infoAnnotation == null) { return; } Info info = new Info(); info.setTitle(infoAnnotation.title()); info.setVersion(infoAnnotation.version()); info.setDescription(infoAnnotation.description()); info.setTermsOfService(infoAnnotation.termsOfService()); info.setContact(convertContact(infoAnnotation.contact())); info.setLicense(convertLicense(infoAnnotation.license())); info.getVendorExtensions().putAll(BaseReaderUtils.parseExtensions(infoAnnotation.extensions())); swagger.setInfo(info); }
info = @Info( title = "Stockquote Swagger Definition", version = "1.0", description = "Stock quote service",
if (!infoConfig.description().isEmpty()) { info.setDescription(infoConfig.description()); if (!infoConfig.termsOfService().isEmpty()) { info.setTermsOfService(infoConfig.termsOfService()); if (!infoConfig.title().isEmpty()) { info.setTitle(infoConfig.title()); if (!infoConfig.version().isEmpty()) { info.setVersion(infoConfig.version()); if (!infoConfig.contact().name().isEmpty()) { Contact contact = info.getContact(); if (contact == null) { contact.setName(infoConfig.contact().name()); if (!infoConfig.contact().email().isEmpty()) { contact.setEmail(infoConfig.contact().email()); if (!infoConfig.contact().url().isEmpty()) { contact.setUrl(infoConfig.contact().url()); if (!infoConfig.license().name().isEmpty()) { License license = info.getLicense(); if (license == null) { license.setName(infoConfig.license().name()); if (!infoConfig.license().url().isEmpty()) {
info = @Info( title = "/Me Endpoint Swagger Definition", version = "1.0", description = "SCIM 2.0 /Me endpoint",
if (!infoConfig.description().isEmpty()) { info.setDescription(infoConfig.description()); if (!infoConfig.termsOfService().isEmpty()) { info.setTermsOfService(infoConfig.termsOfService()); if (!infoConfig.title().isEmpty()) { info.setTitle(infoConfig.title()); if (!infoConfig.version().isEmpty()) { info.setVersion(infoConfig.version()); if (!infoConfig.contact().name().isEmpty()) { Contact contact = info.getContact(); if (contact == null) { contact.setName(infoConfig.contact().name()); if (!infoConfig.contact().email().isEmpty()) { contact.setEmail(infoConfig.contact().email()); if (!infoConfig.contact().url().isEmpty()) { contact.setUrl(infoConfig.contact().url()); if (!infoConfig.license().name().isEmpty()) { License license = info.getLicense(); if (license == null) { license.setName(infoConfig.license().name()); if (!infoConfig.license().url().isEmpty()) {
info = @Info( title = "Stockquote Swagger Definition", version = "1.0", description = "Stock quote service",
if (!infoConfig.description().isEmpty()) { info.setDescription(infoConfig.description()); if (!infoConfig.termsOfService().isEmpty()) { info.setTermsOfService(infoConfig.termsOfService()); if (!infoConfig.title().isEmpty()) { info.setTitle(infoConfig.title()); if (!infoConfig.version().isEmpty()) { info.setVersion(infoConfig.version()); if (!infoConfig.contact().name().isEmpty()) { Contact contact = info.getContact(); if (contact == null) { contact.setName(infoConfig.contact().name()); if (!infoConfig.contact().email().isEmpty()) { contact.setEmail(infoConfig.contact().email()); if (!infoConfig.contact().url().isEmpty()) { contact.setUrl(infoConfig.contact().url()); if (!infoConfig.license().name().isEmpty()) { License license = info.getLicense(); if (license == null) { license.setName(infoConfig.license().name()); if (!infoConfig.license().url().isEmpty()) {
@SwaggerDefinition( info = @Info( description = "Awesome Resources", version = "V12.0.12", title = "Awesome Resource API", contact = @Contact( name = "Ranga Karanam", email = "ranga.karanam@in28minutes.com", url = "http://www.in28minutes.com" ), license = @License( name = "Apache 2.0", url = "http://www.apache.org/licenses/LICENSE-2.0" ) ), consumes = {"application/json", "application/xml"}, produces = {"application/json", "application/xml"}, schemes = {SwaggerDefinition.Scheme.HTTP, SwaggerDefinition.Scheme.HTTPS}, externalDocs = @ExternalDocs(value = "Read This For Sure", url = "http://in28minutes.com") ) public interface ApiDocumentationConfig { }
if (StringUtils.isNotBlank(infoConfig.description())) { info.setDescription(infoConfig.description()); if (StringUtils.isNotBlank(infoConfig.termsOfService())) { info.setTermsOfService(infoConfig.termsOfService()); if (StringUtils.isNotBlank(infoConfig.title())) { info.setTitle(infoConfig.title()); if (StringUtils.isNotBlank(infoConfig.version())) { info.setVersion(infoConfig.version()); if (StringUtils.isNotBlank(infoConfig.contact().name())) { Contact contact = info.getContact(); if (contact == null) { contact.setName(infoConfig.contact().name()); if (StringUtils.isNotBlank(infoConfig.contact().email())) { contact.setEmail(infoConfig.contact().email()); if (StringUtils.isNotBlank(infoConfig.contact().url())) { contact.setUrl(infoConfig.contact().url()); if (StringUtils.isNotBlank(infoConfig.license().name())) { License license = info.getLicense(); if (license == null) { license.setName(infoConfig.license().name()); if (StringUtils.isNotBlank(infoConfig.license().url())) {
info = @Info( title = "/Users Endpoint Swagger Definition", version = "1.0", description = "SCIM 2.0 /Users endpoint",
if (!infoConfig.description().isEmpty()) { info.setDescription(infoConfig.description()); if (!infoConfig.termsOfService().isEmpty()) { info.setTermsOfService(infoConfig.termsOfService()); if (!infoConfig.title().isEmpty()) { info.setTitle(infoConfig.title()); if (!infoConfig.version().isEmpty()) { info.setVersion(infoConfig.version()); if (!infoConfig.contact().name().isEmpty()) { Contact contact = info.getContact(); if (contact == null) { contact.setName(infoConfig.contact().name()); if (!infoConfig.contact().email().isEmpty()) { contact.setEmail(infoConfig.contact().email()); if (!infoConfig.contact().url().isEmpty()) { contact.setUrl(infoConfig.contact().url()); if (!infoConfig.license().name().isEmpty()) { License license = info.getLicense(); if (license == null) { license.setName(infoConfig.license().name()); if (!infoConfig.license().url().isEmpty()) {
info = @Info( title = "/Groups Endpoint Swagger Definition", version = "1.0", description = "SCIM 2.0 /Groups endpoint",
if (!infoConfig.description().isEmpty()) { info.setDescription(infoConfig.description()); if (!infoConfig.termsOfService().isEmpty()) { info.setTermsOfService(infoConfig.termsOfService()); if (!infoConfig.title().isEmpty()) { info.setTitle(infoConfig.title()); if (!infoConfig.version().isEmpty()) { info.setVersion(infoConfig.version()); if (!infoConfig.contact().name().isEmpty()) { Contact contact = info.getContact(); if (contact == null) { contact.setName(infoConfig.contact().name()); if (!infoConfig.contact().email().isEmpty()) { contact.setEmail(infoConfig.contact().email()); if (!infoConfig.contact().url().isEmpty()) { contact.setUrl(infoConfig.contact().url()); if (!infoConfig.license().name().isEmpty()) { License license = info.getLicense(); if (license == null) { license.setName(infoConfig.license().name()); if (!infoConfig.license().url().isEmpty()) {
info = @Info( title = "Stockquote Swagger Definition", version = "1.0", description = "Stock quote service",
@io.swagger.annotations.SwaggerDefinition( info = @Info( title = Constants.NAME, version = Constants.VERSION,