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

Add querystrings / RFC 6570 Form-Style Query Expansion support to permit search URLs #2

Open
buzz3791 opened this issue Aug 14, 2013 · 0 comments

Comments

@buzz3791
Copy link

I wanted to build a RESTful service which has a URL with a RFC 6570 Query Expansion portion like

/projects/{projectName}/issues{?impact}

Where an example URL might be

http://localhost:9991/project/someproject/issues?impact=High

This URL design is typical for searches e.g. http://stackoverflow.com/questions/207477/restful-url-design-for-search

Regrettably, the 0.3.0 webbit-rest implementation precludes this URL design because of this line of code

    String path = URI.create(request.uri()).getPath();

in org.webbitserver.rest.UriTemplateHandler#handleHttpRequest. By calling getPath(), it causes org.weborganic.furi.URIResolver#resolve to detect a mismatch betwen the matches group count and the pattern tokens.

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

1 participant