Skip to content

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

@gorjan5sk

Description

@gorjan5sk

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions