Netflix / asgard

[Asgard is deprecated at Netflix. We use Spinnaker ( www.spinnaker.io ).] Web interface for application deployments and cloud management in Amazon Web Services (AWS). Binary download: http://github.com/Netflix/asgard/releases
http://netflix.github.com/asgard
Apache License 2.0
2.24k stars 403 forks source link

deployment/show endpoint returns JSON with content-type text/html #596

Open renaudguerin opened 10 years ago

renaudguerin commented 10 years ago

This one should be trivial to fix, unfortunately I'm not in a position to set up a Grails dev environment at the moment and send that pull request, sorry :(

/[region]/deployment/show/[deploymentId].json correctly returns JSON content, but with text/html as the content-type.

It's a little annoying as I'm most relying on content-type to check for errors when using the deployment API (failures are typically returned as an HTML error page, and I haven't found HTTP error codes from Asgard to be very reliable : for instance the "proceed" endpoint returns 404 even upon success, see issue #584 )