RKObjectManager documentation显示了如何构建此路由
[manager.router.routeSet addRoute:[RKRoute routeWithName:@"follow_user" pathPattern:@"/users/:userID/follow" method:RKRequestMethodPOST]];
如何使用该路线发布网址请求?
编辑:
requestWithPathForRouteNamed:object:参数:不允许我给对象发帖。 requestWithObject:method:path:参数:不允许我给出一个字典字典,其中包含要在路径的路径模式中匹配的userID
其实我需要这样的东西:
- (NSMutableURLRequest *) requestWithObject:(id)objectToSend
forRouteNamed:(NSString *)routeName
routeParameters:(NSDictionary *)routeParameters;