Exclude some parameters with POST request on RestKit

Posted by Mike Meyers on Stack Overflow See other posts from Stack Overflow or by Mike Meyers
Published on 2014-06-13T09:20:42Z Indexed on 2014/06/13 9:24 UTC
Read the original article Hit count: 261

Filed under:
|
|

I've just integrated RestKit with a Mac application for communicating with a web service. After much confusion, I have successfully got requests and responses working using it.

The problem I am now finding is that when I want to make a POST request.

I have created a RKRequestDescriptor with a mapping for a whole number of properties and all of the properties are being sent as parameters for the query. I want a way of dynamically changing the parameters that are sent, for example not sending some parameters where the property is nil.

Is this possible as part of the built-in functionality of RestKit? And if so, how?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about restkit