Consistently prioritize the api.path setting before falling back to servletContext.getContextPath().
api.path
servletContext.getContextPath()