Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to call GET request with json via Feign? #911

Closed
itratel opened this issue Feb 19, 2019 · 4 comments · Fixed by #1950
Closed

How to call GET request with json via Feign? #911

itratel opened this issue Feb 19, 2019 · 4 comments · Fixed by #1950
Labels
question General usage or 'how-to' questions

Comments

@itratel
Copy link

itratel commented Feb 19, 2019

Here is a external address like http://192.168.2.91:5000/FQA/{\"question\": "社保卡"}", this is a GET request, json param‘s key is "question" and value is "社保卡", now I don't know how to call this interface correctly?

@kdavisk6
Copy link
Member

This questions is better suited for Stack Overflow. Have you tried asking your question there?

@kdavisk6 kdavisk6 added the question General usage or 'how-to' questions label Feb 25, 2019
@itratel
Copy link
Author

itratel commented Feb 26, 2019

@kdavisk6 not yet,thanks for your remender, I will ask in Stack Overflow.

@LareinaH
Copy link

@kdavisk6 not yet,thanks for your remender, I will ask in Stack Overflow.

这接口明显设计的有问题,如果实在要做,就把json当做path variable

@itratel
Copy link
Author

itratel commented Mar 1, 2019

@LareinaH 对的,之前突然想起当作模板变量可以处理,不给我也搞不懂同事为啥给我出个这么个接口,反正感觉怪怪的,不过解决了就行。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question General usage or 'how-to' questions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants