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

dispatch uri vs resource uri #28

Open
andreineculau opened this issue Jul 11, 2013 · 1 comment
Open

dispatch uri vs resource uri #28

andreineculau opened this issue Jul 11, 2013 · 1 comment

Comments

@andreineculau
Copy link
Member

the resource should probably be self-aware of the path it is instantiated on, otherwise it's impossible for it to produce a response with a rel=self link

it could also just call the dispatcher, which would search in the dispatch config for a resource match, but if the resource is served from multiple locations, then which is the canonical location?

temp idea: canonical_uri callback

@andreineculau
Copy link
Member Author

canonical_uri callback would default to expanding a URI template

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

No branches or pull requests

1 participant