Spaces:
Build error
Build error
| package com.dalab.policyengine.config; | |
| import org.springframework.beans.factory.annotation.Value; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import io.swagger.v3.oas.models.OpenAPI; | |
| import io.swagger.v3.oas.models.info.Info; | |
| import io.swagger.v3.oas.models.info.License; | |
| public class OpenAPIConfiguration { | |
| public OpenAPI customOpenAPI( | |
| String appName, | |
| String appDescription, | |
| String appVersion) { | |
| return new OpenAPI() | |
| .info(new Info() | |
| .title(appName) | |
| .version(appVersion) | |
| .description(appDescription) | |
| .termsOfService("http://swagger.io/terms/") // Replace with actual terms | |
| .license(new License().name("Apache 2.0").url("http://springdoc.org"))); // Replace with actual license | |
| } | |
| } |