You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a bunch of experimentation, I figured out that you can use a POJO as a POST body, but I couldn't find it anywhere in the documentation. e.g. You can do
But the tricky part is that the POJO param (boop, in the example), must come first in the parameter list of the method. That was difficult to find out!
Reacted by Usama Amjad, Nikita Sheremet, Simion Alex and kraphaelmagnite
@wulftone is it really failing for you when you put the boop parameter in any other position?
I updated the github-example in the repository and it seems to work in all positions.
Activity
kdavisk6 commentedon May 23, 2019
@wulftone
Thanks for this example. It is missing from the documentation. You can define the body of the request two ways:
@BodyBodyWe should update the documentation to explain this and add you example.
eiselems commentedon Jun 10, 2019
@wulftone @kdavisk6 is this like you had it in mind?
wulftone commentedon Jun 10, 2019
Pretty much, I commented on the pr: #986 (comment)
eiselems commentedon Jun 11, 2019
@wulftone is it really failing for you when you put the boop parameter in any other position?
I updated the github-example in the repository and it seems to work in all positions.
wulftone commentedon Jun 12, 2019
Yes, let me verify exactly why and get back to you... It is interesting that you found it doesn't matter in the example
Add POST example to README.md and example-github (#986)
Add POST example to README.md and example-github (OpenFeign#986)
sleroy commentedon Jun 3, 2020
Indeed I lost 10 minutes to find an Example. Could not guess it easily from the readme...
eiselems commentedon Jun 4, 2020
@sleroy hoped the example would be sufficient
How should we improve it?
Add POST example to README.md and example-github (#986)
Add POST example to README.md and example-github (#986)