【问题标题】:How to use rest apis when using two parameters to the same method call?同一个方法调用使用两个参数时如何使用rest apis?
【发布时间】:2018-09-06 14:26:03
【问题描述】:

我有休息网址:xxxxx/12134?includeaddress=true 这里12134contactid

xxxxx/?$taxid?includeaddress=true 是另一个参数,用于从同一方法调用中获取结果。

所以我有一种情况,我需要放置一个相同的休息路径,该路径将采用任何一个参数(contactid 或taxid)。 可以把两个参数都写在同一个链接里吗

感谢任何帮助!

谢谢

【问题讨论】:

标签: java rest restful-url


【解决方案1】:

? 开始查询参数并以& 分隔它们:

https://some.api.com?hello=world&foo=bar

其中两个参数是hellofoo,它们的值分别是worldbar

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-03
    • 2017-01-17
    • 2021-10-15
    • 2011-06-01
    • 1970-01-01
    相关资源
    最近更新 更多