321 reputation
1512
bio website lyconic.com
location Omaha, NE
age 32
visits member for 5 years, 2 months
seen Jun 26 at 3:49

Jul
2
awarded  Curious
Jun
3
awarded  Popular Question
Sep
14
awarded  Notable Question
May
23
comment How to restart postgres on OS X?
SystemStarter has been deprecated in favor of launchctl in later versions of OSX.
May
23
answered How to restart postgres on OS X?
Nov
8
awarded  Famous Question
Jul
16
answered Passenger is preventing Bundler from seeing my git gems
Jul
16
asked Passenger is preventing Bundler from seeing my git gems
Jul
14
comment Is it possible to route requests to different applications via Content-Type?
(to clarify further, when I say 'content' I mean the specific format of the JSON being returned. For instance, the resource location /people/:id may not change between v1 and v2, but the format of the JSON you get back may change dramatically. The 'identity' of the resource hasn't changed, but it's representation has.)
Jul
14
comment Is it possible to route requests to different applications via Content-Type?
The version number would define what content you get, such as breaking changes to the api. That is why I think content negotiation is appropriate.
Jul
14
comment Is it possible to route requests to different applications via Content-Type?
More information about the API: we will be developing a JSON API for AJAX clients using Sinatra+Rack. If API versioning is done through content negotiation, then separate versions can be deployed in isolation of one another. This is a simple, elegant design following REST principles. What you describe would actually create more dependencies between versions.
Jul
14
comment Is it possible to route requests to different applications via Content-Type?
I disagree. Content negotiation should be the job of the HTTP server. This will actually greatly simplify API development. While misconfiguration could indeed cause a problem, that possibility is not limited to this use case.
Jul
14
comment Is it possible to route requests to different applications via Content-Type?
but what, exactly, would jsonapp and otherstuff be in your example? Should I create entries in /etc/hosts and map those to the two different apps first? (I'm new to nginx, sorry)
Jul
14
comment Is it possible to route requests to different applications via Content-Type?
Would this proxy be transparent to the outsider? I want both applications to be accessible by the same url.
Jul
13
revised Is it possible to route requests to different applications via Content-Type?
added 69 characters in body
Jul
13
asked Is it possible to route requests to different applications via Content-Type?
May
14
awarded  Popular Question
Apr
4
awarded  Popular Question
Dec
16
awarded  Notable Question
Oct
6
revised How do I serve Ruby on Rails applications on Windows Server 2008?
added 626 characters in body; edited tags