无法使用特定的URL-PATH进行GET请求

时间:2018-06-02 09:51:55

标签: api http url curl get

我正在使用API​​,我需要获取特定的发票。

要获取所有发票,服务文档说:

https://api.domain.com/v1/Invoices - 这就像一个魅力。

为了获得特定的发票,文档说:

https://api.domain.com/v1/Invoices({Id}) - 没有用。

我正在使用curl,所以我的代码是:

curl --header "Authorization:Bearer uh12iuh9ihihshu991u3"-X GET https://api.domain.com/v1/IncomingInvoices

uh12iuh9ihihshu991u3是令牌。

ID = 1时,我不知道如何获取特定的发票。

我试过了:

- https://api.domain.com/v1/Invoices=1

- https://api.domain.com/v1/Invoices1

所有人都给了我错误。

先谢谢。

0 个答案:

没有答案
相关问题