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

Get Url pattern or Url with filled parameters from within handler #77

Open
gorjan5sk opened this issue Aug 5, 2014 · 1 comment
Open

Comments

@gorjan5sk
Copy link

I'm not sure whether I've just missed it in the docs/source code, but is there a way to extract the Original Url pattern or direct Url call to which a Handler responds for example when embedding resources or dealing with pagination so that it can be returned in the JSON?

For ex.
The url for an /api/experimental/{experiment} called with /api/experimental/yoyo returned from a tigertonic.Marshalled Handler is:
http://localhost:9980/experimental/yoyo?experiment=yoyo&%7Bexperiment%7D=yoyo&

Is there any way to unmarshal the url so we get a clean form
/api/experimental/yoyo
or better yet, get the pattern and do operations on it:
/api/experimental/{experiment}

@rcrowley
Copy link
Owner

rcrowley commented Oct 5, 2014

No, I don't believe there's a way to get at that. If you find a way to make that available that's API-compatible I'd merge it.

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

2 participants