开发者

How to call a REST API?

I am having trouble unders开发者_运维技巧tanding how to call a RESTful service

More specifically, I am trying to call the first API from hxxp://teambox.com/api/user

/api/1/users/:id

I don't know how to actually create the URL, how should I use ':id' ?

I tried:

http://teambox.com/api/1/users/?123456

http://teambox.com/api/1/users/?id=123456

but it doesn't work. Instead of 12345 I am using the integer id I receive from another call, so it's not because of the actual id.

I just don't know how to create the URL with ':id'

Thank you!


How about http://teambox.com/api/1/users/123456?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜