Upvote:0

Aprove answer
RKObjectMapping *entryMapping = [RKObjectMapping requestMapping];
        [entryMapping addAttributeMappingsFromDictionary:[SingleEntry attributesMapping]];
        RKObjectMapping *entrySerializedMapping = [entryMapping inverseMapping];

    RKRelationshipMapping *entryRelationship = [RKRelationshipMapping relationshipMappingFromKeyPath:@"entries" toKeyPath:@"values" withMapping:entrySerializedMapping];

    RKObjectMapping *valueMapping = [RKObjectMapping requestMapping];

    [valueMapping addPropertyMapping:valueMapping];

    RKRequestDescriptor *descriptor = [RKRequestDescriptor requestDescriptorWithMapping:valueMapping objectClass:[EntriesCollection class] rootKeyPath:nil];

    [self.objectManager addRequestDescriptor:descriptor];
    self.objectManager.requestSerializationMIMEType = RKMIMETypeJSON;

    NSString *path = [self pathForPOST];

    [self.objectManager postObject:entryCollection path:path parameters:nil success:nil failure:nil];

Upvote:1

NSArray

   |
   |______NSDictionary ->Key: Date Value: weight
   |                   ->Key: value Value: weight
   |
   |______NSDictionary ->Key: Date Value: weight
   |                   ->Key: value Value: weight
   |
   |______NSDictionary ->Key: Date Value: weight
                       ->Key: value Value: weight

More Answer related to the Same Query

Upvote:1

 [[RKObjectManager sharedManager].HTTPClient postPath:@"" parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {
        NSLog(@"WHOOO");

    } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
        //
    }];

Credit Goes to: stackoverflow.com

Related question with same questions but different answers