Forum Discussion

sbeauvais's avatar
sbeauvais
Contributor
11 years ago

[Res]duplicate properties in REST request

Hello,

How to I configure a REST method/request to have duplicate properties, e.g.,

GET /dev/api/calendar/locations?locationIds=96&locationIds=33&startDate=01-Feb-2014&endDate=28-Feb-2014


As you can see, property "locationIds" is included twice.

If the REST method/request cannot be configured to support this, can I build the GET command programmatically? I have tried to 'cheat' by setting the value of locationIds to "96&locationIds=33" but the ampersand and the equals symbols are replaced by their code (even though I tried to entitize them).

So, is this possible to do, and if so, how?


Sincerely,
Séverin B.

14 Replies