RestKit iOS options for request

I am trying to get something from the server using RestKit.

Let's say I have class A and I want to map the returned data to objects, but I need to add three parameters for the url request, for example:

http://example.com/someobject/?param1=value1¶m2=value2¶m3=value3

I read the RestKit guide from Github on how to map returned objects seems simple enough, but I just can’t find anything about how to add parameters to the request, most things about the obsolete library 0.10.x.

Can someone explain this process?

EDIT:

I mean a simple process without using RKClient, but rather RKObjectRequestOperation.

+5
source share
1 answer

RKObjectManager, NSDictionary parameters.

NSDictionary *params = @{@"param1" : @"value1",
                         @"param2" : @"value2",
                         @"param3" : @"value3"};

[[RKObjectManager sharedManager] getObject:someObject path:nil parameters:params success:^(RKObjectRequestOperation *operation, RKMappingResult *mappingResult) {

    // success

} failure:^(RKObjectRequestOperation *operation, NSError *error) {

    // failure

}]
+5

All Articles