How to encode JSON as a request parameter using Alamofire and AlamofireObjectMapper

I have a question about making POST, PATCH, and PUT requests when using Alamofire and AlamofireObjectMapper. For example, let's say that I am making a POST request to send an object to the server. Can I pass the mapping as parameters for the request. Does it work in the same way that RestKit encodes parameters into the request body as JSON?

+4
source share

Source: https://habr.com/ru/post/1654945/


All Articles