Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ ENTRYPOINT [\
"-Delasticsearch.apiKey=${ELASTIC_KEY}",\
"-Ddata-access-service.host=${DAS_HOST}",\
"-Ddata-access-service.secret=${DAS_SECRET}",\
"--enable-preview ",\
"-jar",\
"/app.jar"]
16 changes: 16 additions & 0 deletions server/src/main/java/au/org/aodn/ogcapi/server/common/TempApi.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package au.org.aodn.ogcapi.server.common;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

// This is only for safely swapping the health check. Will be removed when swapping is done.
@RestController
@RequestMapping(value="")
public class TempApi {

@GetMapping("/manage/health")
public String health() {
return "Healthy from TempApi";
}
}
2 changes: 1 addition & 1 deletion server/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ management:
enabled: false
endpoints:
web:
base-path: /manage
base-path: /api/v1/ogc/manage
exposure:
include: "health,info"
endpoint:
Expand Down