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

Added support for templated links with no arguments. #77

Merged
merged 1 commit into from
Oct 16, 2014

Conversation

dblock
Copy link
Collaborator

@dblock dblock commented Oct 16, 2014

HAL API spec don't describe what's required vs. what's not in a URI parameter. These are just URI templates per https://tools.ietf.org/html/rfc6570.

It seems incorrect to raise a MissingURITemplateVariablesException for a templated link because you can have something like this: /orders{?page,size}. Now of course we could say any {parameter} is required and any {?parameter} is optional, but that wouldn't match the URI template RFC either.

This change relaxes the requirement to specify parameters to expand a templated link, with an additional warning in the README.

@dblock dblock force-pushed the handle-link-expansion branch from 14ca9be to e4162ae Compare October 16, 2014 16:22
dblock added a commit that referenced this pull request Oct 16, 2014
Added support for templated links with no arguments.
@dblock dblock merged commit d8e73fd into codegram:master Oct 16, 2014
@dblock dblock deleted the handle-link-expansion branch October 17, 2014 12:12
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

Successfully merging this pull request may close these issues.

1 participant