Skip to main content
added 20 characters in body
Source Link
RegDwight
  • 101
  • 1
  • 1
  • 5

I never thought about that - — that's a serious problem. I totally understand throwing option #1 and #2 out - — they're either impractical or impossible.

I strongly suggest going with option #3. I would really like to avoid seeing another query string parameter - — especially one that will be almost guaranteed to be a part of every single request. StackMobile uses option #3 - — a sample URL looks like this:

http://stackmobile.com/stackoverflow.com/questions/

I might also suggest a slight modification to option #3. Can the parameters for the site and the API version be switched around? Then a URL would look like:

http://api.stackexchange.com/2.0/superuser.com/questions

Also one question: would the traditional URL paths still be available for non-authenticated requests or would all requests go through api.stackexchange.com?

I never thought about that - that's a serious problem. I totally understand throwing option #1 and #2 out - they're either impractical or impossible.

I strongly suggest going with option #3. I would really like to avoid seeing another query string parameter - especially one that will be almost guaranteed to be a part of every single request. StackMobile uses option #3 - a sample URL looks like this:

http://stackmobile.com/stackoverflow.com/questions/

I might also suggest a slight modification to option #3. Can the parameters for the site and the API version be switched around? Then a URL would look like:

http://api.stackexchange.com/2.0/superuser.com/questions

Also one question: would the traditional URL paths still be available for non-authenticated requests or would all requests go through api.stackexchange.com?

I never thought about that — that's a serious problem. I totally understand throwing option #1 and #2 out — they're either impractical or impossible.

I strongly suggest going with option #3. I would really like to avoid seeing another query string parameter — especially one that will be almost guaranteed to be a part of every single request. StackMobile uses option #3 — a sample URL looks like this:

http://stackmobile.com/stackoverflow.com/questions/

I might also suggest a slight modification to option #3. Can the parameters for the site and the API version be switched around? Then a URL would look like:

http://api.stackexchange.com/2.0/superuser.com/questions

Also one question: would the traditional URL paths still be available for non-authenticated requests or would all requests go through api.stackexchange.com?

Source Link
Nathan Osman
  • 23.3k
  • 11
  • 61
  • 107

I never thought about that - that's a serious problem. I totally understand throwing option #1 and #2 out - they're either impractical or impossible.

I strongly suggest going with option #3. I would really like to avoid seeing another query string parameter - especially one that will be almost guaranteed to be a part of every single request. StackMobile uses option #3 - a sample URL looks like this:

http://stackmobile.com/stackoverflow.com/questions/

I might also suggest a slight modification to option #3. Can the parameters for the site and the API version be switched around? Then a URL would look like:

http://api.stackexchange.com/2.0/superuser.com/questions

Also one question: would the traditional URL paths still be available for non-authenticated requests or would all requests go through api.stackexchange.com?

Post Made Community Wiki by Nathan Osman