mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-01 22:42:51 +08:00
* Removed RestKit from inheritance hierarchy * Mappings are implemented as concrete classes * Mapper is much more flexible & powerful * Much more robust error handling * Serialization is reimplemented as an object mapping operation * Added ability to serialize to JSON natively * Reworked Core Data integration * Simplified the codebase substantially
23 lines
487 B
Objective-C
23 lines
487 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"
|
|
|
|
/**
|
|
* 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*)object method:(RKRequestMethod)method;
|
|
|
|
@end
|