add constraints to api to skip version in url