Summary
Add a setting that allows users to configure the default API path.
Acceptance Criteria
Details / Tasks
This is a request coming from NBS as they would like to have the API paths in their K8 cluster more closely align with patterns of their other APIs. Specifically, NBS is hoping to set the above API_ROOT_PATH value to "/recordlinker/api". When validating, we need to verify that the path is NOT the root path "/". Validating should also clean the incoming value so that the leading and trailing slashes are normalized. We don't want to host our API from "localhost:///recordlinker/api/health-check", nor do we want urls like "localhost://recordlinker/api//health-check". Basically make sure we don't have a double "/".
Summary
Add a setting that allows users to configure the default API path.
Acceptance Criteria
Details / Tasks
This is a request coming from NBS as they would like to have the API paths in their K8 cluster more closely align with patterns of their other APIs. Specifically, NBS is hoping to set the above API_ROOT_PATH value to "/recordlinker/api". When validating, we need to verify that the path is NOT the root path "/". Validating should also clean the incoming value so that the leading and trailing slashes are normalized. We don't want to host our API from "localhost:///recordlinker/api/health-check", nor do we want urls like "localhost://recordlinker/api//health-check". Basically make sure we don't have a double "/".