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

Support for RFC 6570-style URI templates #10

Open
nimajneb opened this issue Jan 9, 2013 · 1 comment
Open

Support for RFC 6570-style URI templates #10

nimajneb opened this issue Jan 9, 2013 · 1 comment

Comments

@nimajneb
Copy link

nimajneb commented Jan 9, 2013

While trying to implement the Hypertext Application Language specification in one of my projects I stumbled upon the issue on how to construct a templated URI like this:

"find": { "href": "/orders{?id}", "templated": true }

As it seems there is currently no elegant way to retrieve a previously defined route and its variables from within a ZF2 controller, so maybe it would be nice to have a custom route that exposes some kind of API to get the variable URI parts or maybe even supports that proposed standard RFC 6570?

@Ocramius
Copy link
Member

Ocramius commented Jan 9, 2013

@DASPRiD do you think the syntax of RFC 6570 could be used also in core?

@nimajneb this is awesome input, and we'll probably end up handling this once we get at working at the HATEOAS part (later milestone)

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