I have a REST API to call that expects dates in the format yyyyMMdd
My REST Client code looks like this
@GET@Path("/atl/")RestResponse<AtlResponse> getAtlResponse( @QueryParam("from") LocalDate from);
and the query parameter gets formatted like this:
from=2021-07-03
I tried
@GET@Path("/atl/")RestResponse<AtlResponse> getAtlResponse( @QueryParam("from") @DateFormat(pattern="yyyyMMdd") LocalDate from);
but I have the same result.
Of course I could replace with a String and format the date before calling this API but that would be a shame :)
Thanks !