Skip to content

URI template with '*' for parameters that support multiple values [DATACMNS-780] #1242

Open
@spring-projects-issues

Description

@spring-projects-issues

Mirco Andreon opened DATACMNS-780 and commented

Hello,
I created a search service like this for my resource:

List<Booking> findByStatusIn(@Param("status") Collection<BookingStatus> status);

Hence it allows multiple values for parameter "status".
When I invoke http://localhost:8080/myapp/rest/myresources I get:

{
  "_links" : {
    "findByStatusIn" : {
      "href" : "http://localhost:8080/myapp/rest/myresources/search/findByStatusIn{?status}",
      "templated" : true
    }
  }
}

This seems incorrect, since the "href" should be "http://localhost:8080/myapp/rest/myresources/search/findByStatusIn{?status*}, that is include an asterisk after the parameter name. This comes from RFC 6570 as stated here traverson/traverson#41


Affects: 1.9.3 (Evans SR3), 1.10.2 (Fowler SR2), 1.11 GA (Gosling)

Reference URL: traverson/traverson#41

1 votes, 3 watchers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions