Question

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!

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top