Files
RestKit/Code/Network/RKRoute.h
Blake Watters ffa2fc685e Introduced named route support. refs #779
* Provides for the registration of route either by class and method or via symbolic name
* Changed routes representation from simple dictionary to RKRoute model
* Eliminated RKRouter as a protocol
* Migrated RKObjectRouter to Network layer and renamed to RKRouter
* Added router as property of RKClient, RKObjectManager now proxies access
2012-07-11 16:06:55 -04:00

23 lines
590 B
Objective-C

//
// RKRoute.h
// RestKit
//
// Created by Blake Watters on 5/31/12.
// Copyright (c) 2012 RestKit. All rights reserved.
//
#import "RKRequest.h"
@interface RKRoute : NSObject
@property (nonatomic, retain) NSString *name; // can be nil
@property (nonatomic, retain) Class objectClass; // can be nil
@property (nonatomic, assign) RKRequestMethod method;
@property (nonatomic, retain) NSString *resourcePathPattern;
@property (nonatomic, assign) BOOL shouldEscapeResourcePath; // when YES, the path will be escaped when interpolated
- (BOOL)isNamedRoute;
- (BOOL)isClassRoute;
@end