Open FreifeldRoyi opened 3 years ago
Given we cannot find the Gitter history, could you explain more some more details of the issue? Would using something like @QueryParam("asd") @DefaultValue("my-val")
not work here?
Hi @jamezp.
I think that @DefauleValue("my-val")
would partially help.
When I originally posted on Gitter, @andymc12 said that it is not portable and not part of the standard. I'm not sure if it is now.
Here's a link to the Gitter history
If I understand what I meant, since it was a long time ago - I suggested 2 options:
@DefaultValue
or @DefaultQueryParam
Would be awesome to do the same thing for payload as well
At that time, as far as I remember, I needed to set the headers, query params, payload, path params in one single function call. It created a telescopic function. Also, most of the time, I needed the same things over and over again, so writing them down in several places in my code just didn't look good. So I had to wrap it with another client, and I think it just beats the purpose of creating a standard way of handling REST clients
(Continuing a conversation with @andymc12 from Gitter channel) I would like to create requests with default data with no extra parameters. Headers are already provided with
RegisterClientHeaders
butQueryParam
and actual JSON payloads are not implemented:e.g
Same thing goes for actual json payload