문제

I am having trouble understanding 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?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top