Skip to content
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

escaping colon in resource path #105

Open
lmasarati opened this issue Aug 12, 2020 · 0 comments
Open

escaping colon in resource path #105

lmasarati opened this issue Aug 12, 2020 · 0 comments

Comments

@lmasarati
Copy link

lmasarati commented Aug 12, 2020

I need to emulate an API which employs colon (:) in resource paths and I cannot find howto handle them.

for example:

resource "stub/nso/restconf/operations/tailf-ncs:services/myService:serviceSync" => sub {...}
resource "stub/nso/restconf/operations/tailf-ncs:services/myService:serviceDelete" => sub {...}

The ":services", ":serviceSync" and ":serviceDelete" elements are not parameters but part of the path...
the result is multiple match in routes:

WARN 2020-08-12T19:12:49.938 more then one route has been found: POST /stub/nso/restconf/operations/tailf-ncs:services/myService:serviceSync

I already tried escaping colons with "\" but doesn't work...
Is there any documentation/examples about manually creating routes instead of using the "resource" API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant