Comments for Blog Post NR1:
NSURL* serverURL = [NSURL URLWithString:@"http://todo-aerogear.rhcloud.com/posts/1/"];
AGPipeline* pipeline = [AGPipeline pipelineWithBaseURL:serverURL];
// Add a REST pipe for the 'projects' endpoint
id<AGPipe> commentsForBlog1 = [pipeline pipe:^(id<AGPipeConfig> config) {
[config setName:@"comments"];
}];
Comments for Blog Post NR2:
// Add a REST pipe for the 'projects' endpoint
NSURL* serverURL2 = [NSURL URLWithString:@"http://todo-aerogear.rhcloud.com/posts/2/"];
id<AGPipe> commentsForBlog2 = [pipeline pipe:^(id<AGPipeConfig> config) {
[config baseURL:serverURL2];
[config setName:@"comments"];
}];