Reputation: 70416
I want to consume this api endpoint
.../country/search/{query}
another way would be
.../country/search?query={query}
however the api does not support that. How can I support the first style with restkit and not violate the path pattern?
pathPattern:@"/country/search/"
is not recognized by
getObjectsAtPath:[NSString stringWithFormat:@"country/search/%@", query]
so restkit fails to load the correct mapping.
Upvotes: 3
Views: 493