Would I include this whole thing (isn’t that a Url not a Uri if I include the entire string here) for a Uri?
http://someThirdPartyApi.com/api/v1/cases.json
or would it just be this portion for the Uri when making OAuth requests?
/api/v1/cases.json
UPDATED – (context):
So for example with OAuth, as you know, part of the signature is the Base Uri. I don’t understand if that means this entire address or just /api/v1/cases.json which I guess would be the resource part of the Url? I don’t get it. What should I be passing as part of the signature creation for the Uri part?
In your example
http://someThirdPartyApi.com/api/v1/cases.jsonis an absolute URL, while/api/v1/cases.jsonis a relative URL.You can use relative URL when you’re in a document located at some URL and you want to reference some other “close” URL (for example on the same domain name). So, for example, in the document located at
http://someThirdPartyApi.com/index.aspx, both of your URLs should be treated the same.If you’re not in a document located at the same domain, you should use the absolute URL.