{"action":"created","issue":{"url":"https://api.github.com/repos/Moya/Moya/issues/314","labels_url":"https://api.github.com/repos/Moya/Moya/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/Moya/Moya/issues/314/comments","events_url":"https://api.github.com/repos/Moya/Moya/issues/314/events","html_url":"https://github.com/Moya/Moya/issues/314","id":118340349,"number":314,"title":"Multiple ParameterEncoding","user":{"login":"shinyaohira","id":1974422,"avatar_url":"https://avatars.githubusercontent.com/u/1974422?v=3","gravatar_id":"","url":"https://api.github.com/users/shinyaohira","html_url":"https://github.com/shinyaohira","followers_url":"https://api.github.com/users/shinyaohira/followers","following_url":"https://api.github.com/users/shinyaohira/following{/other_user}","gists_url":"https://api.github.com/users/shinyaohira/gists{/gist_id}","starred_url":"https://api.github.com/users/shinyaohira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinyaohira/subscriptions","organizations_url":"https://api.github.com/users/shinyaohira/orgs","repos_url":"https://api.github.com/users/shinyaohira/repos","events_url":"https://api.github.com/users/shinyaohira/events{/privacy}","received_events_url":"https://api.github.com/users/shinyaohira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-23T08:57:46Z","updated_at":"2015-11-23T15:05:28Z","closed_at":null,"body":"I need to make a POST request with query string and json body. How can I pass each parameters to Moya?"},"comment":{"url":"https://api.github.com/repos/Moya/Moya/issues/comments/158962076","html_url":"https://github.com/Moya/Moya/issues/314#issuecomment-158962076","issue_url":"https://api.github.com/repos/Moya/Moya/issues/314","id":158962076,"user":{"login":"ashfurrow","id":498212,"avatar_url":"https://avatars.githubusercontent.com/u/498212?v=3","gravatar_id":"","url":"https://api.github.com/users/ashfurrow","html_url":"https://github.com/ashfurrow","followers_url":"https://api.github.com/users/ashfurrow/followers","following_url":"https://api.github.com/users/ashfurrow/following{/other_user}","gists_url":"https://api.github.com/users/ashfurrow/gists{/gist_id}","starred_url":"https://api.github.com/users/ashfurrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashfurrow/subscriptions","organizations_url":"https://api.github.com/users/ashfurrow/orgs","repos_url":"https://api.github.com/users/ashfurrow/repos","events_url":"https://api.github.com/users/ashfurrow/events{/privacy}","received_events_url":"https://api.github.com/users/ashfurrow/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T15:05:28Z","updated_at":"2015-11-23T15:05:28Z","body":"Hey there! Great question. We cover a bit about parameter encoding [in the docs](https://github.com/Moya/Moya/blob/master/docs/Endpoints.md#from-target-to-endpoint-), but the short-and-simple answer is that you need to pass a custom `endpointClosure` when you create the provider. It takes a target, which you `switch` on to customize individual endpoints. \r\n\r\nThe parameter encoding you're describing is pretty custom – query string in the URL and a JSON body – so you should use the `.Custom` parameter encoding type. It takes a closure that modifies the `NSURLRequest` and returns it. You can see the source [here](https://github.com/Moya/Moya/blob/731db29d6a68d350ef97ad059e881f361dc35e3f/Moya/Moya.swift#L38-L57). \r\n\r\nLike I said, it's a pretty custom thing so I'm afraid to say we don't have many examples on it yet. We'll help you figure it out, though! And once we do, it would be :100: if you wanted to submit a pull request that adds some more examples to the docs based on what your experience :cake:"}}