Skip to content

Commit

Permalink
Update URL format
Browse files Browse the repository at this point in the history
  • Loading branch information
haideriqbal committed Jan 14, 2025
1 parent febfef3 commit 004f8b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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://wwwdev.ebi.ac.uk/ols4";

@Lazy
@Bean
Expand All @@ -23,7 +23,7 @@ public OpenAPI customOpenApi(ServletContext context) {
.addServersItem(new Server().url(serverUrl))
.info(new Info()
.title("OLS Service")
.description("REST API for OLS. Please see <a href='/defined-response-fields' target='_blank'>this page</a> for defined response field in OLS.")
.description("REST API for OLS. Please see <a href='"+OLS4_SERVER_URL+"/defined-response-fields' target='_blank' style='font-weight: bold; font-size: 16px;'>this page</a> for defined response field in OLS.")
.version("3.0")
.termsOfService("https://www.ebi.ac.uk/about/terms-of-use/")
.license(new License()
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/DefinedResponseFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function StaticDocs() {
const [fields, setFields] = useState<DefinedField[]>([]);

useEffect(() => {
fetch('/api/v2/defined-fields')
fetch(process.env.REACT_APP_APIURL+'/api/v2/defined-fields')
.then((response) => response.json())
.then((data) => setFields(data))
.catch((error) => console.error('Error fetching defined fields:', error));
Expand Down

0 comments on commit 004f8b5

Please sign in to comment.