set project id constraint for API

- fixes 404 error when using periods in project namespace/path
- makes optional the use of percent encoding for forward slash in project namespace/path

rel #6954