{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-core/issues/124","labels_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/124/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/124/events","html_url":"https://github.com/swagger-api/swagger-core/issues/124","id":10535774,"number":124,"title":"Problem with content-type and DELETE","user":{"login":"stianl","id":169642,"avatar_url":"https://avatars.githubusercontent.com/u/169642?v=3","gravatar_id":"","url":"https://api.github.com/users/stianl","html_url":"https://github.com/stianl","followers_url":"https://api.github.com/users/stianl/followers","following_url":"https://api.github.com/users/stianl/following{/other_user}","gists_url":"https://api.github.com/users/stianl/gists{/gist_id}","starred_url":"https://api.github.com/users/stianl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stianl/subscriptions","organizations_url":"https://api.github.com/users/stianl/orgs","repos_url":"https://api.github.com/users/stianl/repos","events_url":"https://api.github.com/users/stianl/events{/privacy}","received_events_url":"https://api.github.com/users/stianl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-core/labels/Feature","name":"Feature","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-core/milestones/4","html_url":"https://github.com/swagger-api/swagger-core/milestones/v1.3.0","labels_url":"https://api.github.com/repos/swagger-api/swagger-core/milestones/4/labels","id":232015,"number":4,"title":"v1.3.0","description":"","creator":{"login":"fehguy","id":249413,"avatar_url":"https://avatars.githubusercontent.com/u/249413?v=3","gravatar_id":"","url":"https://api.github.com/users/fehguy","html_url":"https://github.com/fehguy","followers_url":"https://api.github.com/users/fehguy/followers","following_url":"https://api.github.com/users/fehguy/following{/other_user}","gists_url":"https://api.github.com/users/fehguy/gists{/gist_id}","starred_url":"https://api.github.com/users/fehguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fehguy/subscriptions","organizations_url":"https://api.github.com/users/fehguy/orgs","repos_url":"https://api.github.com/users/fehguy/repos","events_url":"https://api.github.com/users/fehguy/events{/privacy}","received_events_url":"https://api.github.com/users/fehguy/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":26,"state":"closed","created_at":"2012-12-18T16:30:24Z","updated_at":"2014-12-20T23:30:29Z","due_on":null,"closed_at":"2014-09-19T06:15:10Z"},"comments":5,"created_at":"2013-02-01T10:50:45Z","updated_at":"2015-04-01T18:24:58Z","closed_at":"2013-07-02T07:53:03Z","body":"It'd be great if it was possible to excercise some more control over the content-type header being sent from Swagger UI. When defining a API operation with HTTP method DELETE the content-type always seems to be \"application/json\". This causes Play2 to invoke a special body parser that tries to parse the body as JSON content, but this of course fails since the body is empty. I tried adding an annotation like     @Consumes(MediaType.APPLICATION_FORM_URLENCODED) to my method, but this does not seem to change the API JSON being generated (and thus not affecting the UI).\r\n\r\nCould this annotation, or a similar parameter be used to control the content-type sent from swagger-ui?\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-core/issues/comments/88584814","html_url":"https://github.com/swagger-api/swagger-core/issues/124#issuecomment-88584814","issue_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/124","id":88584814,"user":{"login":"psinghsp","id":6025212,"avatar_url":"https://avatars.githubusercontent.com/u/6025212?v=3","gravatar_id":"","url":"https://api.github.com/users/psinghsp","html_url":"https://github.com/psinghsp","followers_url":"https://api.github.com/users/psinghsp/followers","following_url":"https://api.github.com/users/psinghsp/following{/other_user}","gists_url":"https://api.github.com/users/psinghsp/gists{/gist_id}","starred_url":"https://api.github.com/users/psinghsp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psinghsp/subscriptions","organizations_url":"https://api.github.com/users/psinghsp/orgs","repos_url":"https://api.github.com/users/psinghsp/repos","events_url":"https://api.github.com/users/psinghsp/events{/privacy}","received_events_url":"https://api.github.com/users/psinghsp/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T18:24:58Z","updated_at":"2015-04-01T18:24:58Z","body":"I have a node/express server. Swagger-UI 2.0 always sets the Content-type header to \"application/json\" for DELETE operation. In my case, the body is empty - so Express body parser just chokes on it. I tried setting the \"consumes\" to \"text/html\" in the Swagger API specification - but Swagger-UI insists on sendting Content-type  as \"application/json\". Is it possible to get a fix for it?\r\n"}}