rescu icon indicating copy to clipboard operation
rescu copied to clipboard

Provide some serialization flexibility for @PathParam, @FormParam, @HeaderParam etc.

Open mmazi opened this issue 10 years ago • 2 comments

Currently, all parameters are simply toString()ed (except for BigDecimals). Some flexibility should be provided here, eg. for:

  • BigDecimals (see also #48) and floats,
  • Collections and arrays,
  • Dates and times.

Note that this issue doesn't apply to json data since it has its own flexible serialization (by Jackson).

mmazi avatar Sep 23 '14 13:09 mmazi

See how RestEasy, Jersey etc. handle this.

mmazi avatar May 22 '15 15:05 mmazi

I think serialization in rescu should generally be refactored (eg. factor out the serialization methods from Params); serialization should be separate from the beans that hold data. This deserves a new issue.

mmazi avatar May 25 '15 11:05 mmazi