Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xfyre committed Sep 21, 2014
1 parent cf394dd commit 84a0367
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ To get started with RestKitMapper you should fully understand RestKit concepts (

- (void)initializeRestKitMapperDefaults
{
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject: @"YourConfigFileName" forKey: RKMRestKitMapperConfigFileKey];
[defaults setObject: @"RKMRestKitMapperModelNameKey" forKey: RKMRestKitMapperModelNameKey];
[defaults setObject: @"https://your.server.url:port" forKey: RKMRestKitMapperServerBaseKey];
[defaults setObject: @"/path/to/api" forKey: RKMRestKitMapperContextUrlKey]; // optional
[defaults synchronize];
[RKMRestKitMapper configureWithFileName:@"RestKitMapperConfig"
serverBaseUrl:@"https://my.server:8080"
contextUrl:@"/api/v2"
modelName:@"MyModelName"];
}

- (void)callMyRestApiMethod
Expand Down

0 comments on commit 84a0367

Please sign in to comment.