I'm using RavenDB for my persistence which is giving my objects identifiers like this:
networks/33 users/322
etc where the route to load my network restfully is mydomain.com/networks/33
So I'm wondering if I will have any issues mapping my responseDescriptors in one spot on app initialisation.
Let's say I have this for my Network response descriptor:
[manager addResponseDescriptor:[RKResponseDescriptor
responseDescriptorWithMapping:networkMapping
pathPattern:@":\\identifier"
keyPath:@"Network"
and this for my User response descriptor:
[manager addResponseDescriptor:[RKResponseDescriptor
responseDescriptorWithMapping:networkMapping
pathPattern:@":\\identifier"
keyPath:@"User"
When I request an object at mydomain.com/networks/33 or mydomain.com/users/323 how does the router know which response descriptor to use?