Files
RestKit/Code/ObjectMapping/RKRouter.h
Jeremy Ellison 6a5ee2af7e Revert "Remove per-file copyrights"
This reverts commit 91e7c6bb5e.
2011-01-12 15:27:19 -05:00

29 lines
755 B
Objective-C

//
// RKRouter.h
// RestKit
//
// Created by Blake Watters on 7/20/10.
// Copyright 2010 Two Toasters. All rights reserved.
//
#import "../Network/Network.h"
#import "RKObjectMappable.h"
/**
* Defines a protocol for mapping Cocoa objects to remote resource locations and
* serializables representations.
*/
@protocol RKRouter
/**
* Returns the resource path to send requests for a given object and HTTP method
*/
- (NSString*)resourcePathForObject:(NSObject<RKObjectMappable>*)object method:(RKRequestMethod)method;
/**
* Returns a serialization of an object suitable for exchanging with a remote system
*/
- (NSObject<RKRequestSerializable>*)serializationForObject:(NSObject<RKObjectMappable>*)object method:(RKRequestMethod)method;
@end