{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2408","repository_url":"https://api.github.com/repos/swagger-api/swagger-ui","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2408/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2408/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2408/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/2408","id":177428937,"number":2408,"title":"Content-type is not being sent with GET and DELETE requests","user":{"login":"manish2aug","id":17476238,"avatar_url":"https://avatars.githubusercontent.com/u/17476238?v=3","gravatar_id":"","url":"https://api.github.com/users/manish2aug","html_url":"https://github.com/manish2aug","followers_url":"https://api.github.com/users/manish2aug/followers","following_url":"https://api.github.com/users/manish2aug/following{/other_user}","gists_url":"https://api.github.com/users/manish2aug/gists{/gist_id}","starred_url":"https://api.github.com/users/manish2aug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manish2aug/subscriptions","organizations_url":"https://api.github.com/users/manish2aug/orgs","repos_url":"https://api.github.com/users/manish2aug/repos","events_url":"https://api.github.com/users/manish2aug/events{/privacy}","received_events_url":"https://api.github.com/users/manish2aug/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-09-16T13:43:16Z","updated_at":"2017-01-11T19:21:26Z","closed_at":null,"body":"*\\* swagger-ui version*\\* 2.2.3\n**Swagger file:** \n`\"/v1/processes/{guid}\" : {\n      \"get\" : {\n        \"tags\" : [ \"Process API\" ],\n        \"summary\" : \"Finds an active process task with supplied process id\",\n        \"description\" : \"The process id is an user defined unique identifier for New Business process instance\",\n        \"operationId\" : \"findById\",\n        \"schemes\" : [ \"https\" ],\n        \"consumes\" : [ \"application/vnd.bpm-services.v1+json\" ],\n        \"produces\" : [ \"application/json\" ],\n        \"parameters\" : [ {\n          \"name\" : \"guid\",\n          \"in\" : \"path\",\n          \"description\" : \"Process id\",\n          \"required\" : true,\n          \"type\" : \"string\"\n        } ],\n        \"responses\" : {\n          \"200\" : {\n            \"description\" : \"Successful: Process found with supplied process id\",\n            \"schema\" : {\n              \"$ref\" : \"#/definitions/BPMProcessDetail\"\n            }\n          },\n          \"401\" : {\n            \"description\" : \"Operation failed: (Un Authenticated) Credentials supplied are not valid\",\n            \"schema\" : {\n              \"$ref\" : \"#/definitions/Response\"\n            }\n          },\n          \"403\" : {\n            \"description\" : \"Operation failed: (Un Authorized) Principle corresponding to the supplied credentials is not allowed to access the operation\",\n            \"schema\" : {\n              \"$ref\" : \"#/definitions/Response\"\n            }\n          },\n          \"404\" : {\n            \"description\" : \"Not Found: No active process instance found for supplied id\",\n            \"schema\" : {\n              \"$ref\" : \"#/definitions/Response\"\n            }\n          },\n          \"405\" : {\n            \"description\" : \"Operation failed: (Method Not Allowed) Only allowed http method for this operation is GET\",\n            \"schema\" : {\n              \"$ref\" : \"#/definitions/Response\"\n            }\n          },\n          \"415\" : {\n            \"description\" : \"Operation failed: (Unsupported Media Type) The only supported media type for operation is - application/vnd.bpm-services.v1+json\",\n            \"schema\" : {\n              \"$ref\" : \"#/definitions/Response\"\n            }\n          },\n          \"500\" : {\n            \"description\" : \"Operation failed: (Internal Server Error) An unexpected error was encountered, please check the logs for detailed message\",\n            \"schema\" : {\n              \"$ref\" : \"#/definitions/Response\"\n            }\n          }\n        }\n      }`\n\n**Curl request from swagger-ui**\n`curl -X GET --header 'Accept: application/json' 'http://localhost:9080/bpm-services/rest/v1/processes/232'`\n\nas the api methods needs the specific content type, the call failes with 415\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/271967320","html_url":"https://github.com/swagger-api/swagger-ui/issues/2408#issuecomment-271967320","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2408","id":271967320,"user":{"login":"mpalourdio","id":5034671,"avatar_url":"https://avatars.githubusercontent.com/u/5034671?v=3","gravatar_id":"","url":"https://api.github.com/users/mpalourdio","html_url":"https://github.com/mpalourdio","followers_url":"https://api.github.com/users/mpalourdio/followers","following_url":"https://api.github.com/users/mpalourdio/following{/other_user}","gists_url":"https://api.github.com/users/mpalourdio/gists{/gist_id}","starred_url":"https://api.github.com/users/mpalourdio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpalourdio/subscriptions","organizations_url":"https://api.github.com/users/mpalourdio/orgs","repos_url":"https://api.github.com/users/mpalourdio/repos","events_url":"https://api.github.com/users/mpalourdio/events{/privacy}","received_events_url":"https://api.github.com/users/mpalourdio/received_events","type":"User","site_admin":false},"created_at":"2017-01-11T19:21:26Z","updated_at":"2017-01-11T19:21:26Z","body":"Looks like the specification is not that clear : https://github.com/json-api/json-api/issues/968\r\n\r\nThis threads emphasizes the fact that Content-Type should not be sent with GET and DELETE, which makes sense.\r\n\r\nThanks !"}}
{"actor":{"display_login":"mpalourdio"}}