{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/182","labels_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/182/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/182/events","html_url":"https://github.com/swagger-api/swagger-spec/issues/182","id":47041518,"number":182,"title":"Support an operation to have multiple specifications per path (e.g. multiple POST operation per path)","user":{"login":"DavidBiesack","id":545944,"avatar_url":"https://avatars.githubusercontent.com/u/545944?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidBiesack","html_url":"https://github.com/DavidBiesack","followers_url":"https://api.github.com/users/DavidBiesack/followers","following_url":"https://api.github.com/users/DavidBiesack/following{/other_user}","gists_url":"https://api.github.com/users/DavidBiesack/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidBiesack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidBiesack/subscriptions","organizations_url":"https://api.github.com/users/DavidBiesack/orgs","repos_url":"https://api.github.com/users/DavidBiesack/repos","events_url":"https://api.github.com/users/DavidBiesack/events{/privacy}","received_events_url":"https://api.github.com/users/DavidBiesack/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-spec/labels/Swagger.Next%20Proposal","name":"Swagger.Next Proposal","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-10-28T15:39:45Z","updated_at":"2015-05-05T15:33:04Z","closed_at":null,"body":"with POST actions especially, there can be several unrelated operations that would be better presented to the user as separate POST actions in swagger-ui because they do very different things to the same resource. Each of these different operations should have a unique description string and unique media types to select from and other unique parameters (such as query parameters), and thus have separate presentation in swagger-ui. By simply allowing only just schema overloading, there is no way for me to constrain query parameter A to be used with just media type X, and query parameter B to be used with media type Y. These are implemented as two independent operations and it would be nice to be able to model them independently in Swagger.\r\n\r\nSo I think a proposal i saw elsewhere to annotate the operations themselves (to provide unique keys in the JSON object) would actually be more flexible than other workarounds to the fact that Swagger only allows one POST per path when a REST API may in fact support many independent POST calls.\r\n\r\ni.e. something like\r\n\r\npaths:\r\n /a/b/c:\r\n   get: ....\r\n   put: ...\r\n   post.optimize: spec for the optimize operation\r\n   post.merge: spec for the merge operation\r\n\r\n(Initially discussed in #146)"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/comments/99117464","html_url":"https://github.com/swagger-api/swagger-spec/issues/182#issuecomment-99117464","issue_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/182","id":99117464,"user":{"login":"zeymon","id":4757826,"avatar_url":"https://avatars.githubusercontent.com/u/4757826?v=3","gravatar_id":"","url":"https://api.github.com/users/zeymon","html_url":"https://github.com/zeymon","followers_url":"https://api.github.com/users/zeymon/followers","following_url":"https://api.github.com/users/zeymon/following{/other_user}","gists_url":"https://api.github.com/users/zeymon/gists{/gist_id}","starred_url":"https://api.github.com/users/zeymon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeymon/subscriptions","organizations_url":"https://api.github.com/users/zeymon/orgs","repos_url":"https://api.github.com/users/zeymon/repos","events_url":"https://api.github.com/users/zeymon/events{/privacy}","received_events_url":"https://api.github.com/users/zeymon/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T15:33:03Z","updated_at":"2015-05-05T15:33:03Z","body":"+1"}}