Skip to content

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

@buzz3791

Description

@buzz3791

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions