views:

92

answers:

2

So I've got a base Uri of:

https://graph.facebook.com/

Ok, you can append various sub paths such as this to their API:

/me/friends
/322323232
etc.

So you'd end up with something like this for their API calls:

https://graph.facebook.com/me/friends?access_token=2343sdfse43.....

What would you call the /me/friends portion of this url? I mean it's not a "Uri". The Uri is the first part.

There's got to be some kind of official name to call sub directories under the Uri right? or no?

+14  A: 

The URI (Uniform Resource Identifier) is the entire string. Also note that URL (Uniform Resource Locator) and URI are not the same; URL is a subset of URI. See Wikipedia's article for information.

In your example, /me/friends is known as the path.

BoltClock
Indeed. See [here](http://labs.apache.org/webarch/uri/rfc/rfc3986.html#components) for more details.
Stephen
+1 Per the [RFC](http://www.ietf.org/rfc/rfc2396.txt), the correct term is path.
Craig Stuntz
thanks. So then the https://graph.facebook.com would be the "base" url?
CoffeeAddict
It's known as the hostname or domain.
BoltClock
duh yea. I guess I was originally right when naming the entire request url a Uri in some of my older code..
CoffeeAddict
+4  A: 

I would call it the "path" or "route."

David
route is another good term (MVC) good one, thanks.
CoffeeAddict
Isn't "route" how the path is handled?
reinierpost