Skip to content

Commit

Permalink
updated swagger introduction for #111
Browse files Browse the repository at this point in the history
  • Loading branch information
giraygi committed Jan 24, 2025
1 parent c82998b commit f84b555
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@Configuration
public class SwaggerConfig {

private final String OLS4_SERVER_URL = "https://www.ebi.ac.uk/ols4";
private final String OLS4_SERVER_URL = "https://api.terminology.tib.eu";

@Lazy
@Bean
Expand All @@ -22,15 +22,16 @@ public OpenAPI customOpenApi(ServletContext context) {
return new OpenAPI()
.addServersItem(new Server().url(serverUrl))
.info(new Info()
.title("OLS Service")
.description("REST API for OLS")
.version("3.0")
.termsOfService("https://www.ebi.ac.uk/about/terms-of-use/")
.title("TIB Terminology Service")
.description("REST API for OLS4")
.version("4.0")
.termsOfService("https://www.tib.eu/en/terms-of-use")
.license(new License()
.name("CC0 1.0 Universal (CC0 1.0) Public Domain Dedication")
.url("https://creativecommons.org/publicdomain/zero/1.0/")
)
);
}

}
}

0 comments on commit f84b555

Please sign in to comment.