kumuluz / kumuluzee-rest

KumuluzEE REST extension for implementation of common, advanced and flexible REST API functionalities and patterns as microservices.
https://ee.kumuluz.com
Other
8 stars 4 forks source link

Unable to send "null" query parameter #8

Closed osbeorn closed 4 years ago

osbeorn commented 4 years ago

Query parameters are optional by nature and it's currently not possible to omit them using this library. Would it be possible to skip query parameter inclusion if a null value is used?

Interface;

@GET
public Response findEntities(@QueryParam("search") String text, @QueryParam("optionalParam") UUID optionalParam);

Usage:

myApi.findEntities("ent%", null);

Result: GET http://localhost:8080/entities?search=ent%

osbeorn commented 4 years ago

Wrong project ... Closing.