Skip to content

configurable API root path #287

@ericbuckley

Description

@ericbuckley

Summary

Add a setting that allows users to configure the default API path.

Acceptance Criteria

  • Add a new setting to the config, API_ROOT_PATH
  • Add validations for the API_ROOT_PATH
  • Update the main app to use the default root_path

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 "/".

Metadata

Metadata

Assignees

Labels

apiNew API feature
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions