-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cornice API with optional path parameter #548
Comments
Hi Thierry, To be honest with you I never used these optional path parameters. cornice/cornice/pyramidhook.py Lines 191 to 264 in 54e2968
Alternatively, you can register several routes in the right order to obtain the same result |
Hi,
I'm trying to build a Cornice service which should accept an optional path parameter, so I followed Pyramid guidelines and set path as "
/api/rest/doc/{doc_id}{version:.*}
".But then:
request.matchdict['version']
is set to "/1
" (for example), instead of just "1
", as described in Pyramid documentation;doc_id}{version
"!So is this syntax supported by Cornice, or should I handle it in another way?
Best regards,
Thierry
The text was updated successfully, but these errors were encountered: