I have a simple question about logic to use between CoreData
and RestKit
.
I'm using RestKit
to map my JSON
responses to CoreData
entities. I have an Event with comments.
I'm sending a request to get information about event and a second one (for now) for the comments.
Is there a way to map comments independently of my previous event and join them after or Do I have to join them with the event when there is the mapping? I don't know what is the best way to do this.
In my future implementations, I would like to send to get information from the event and its comments. But I still want to keep my secondary method to get comments without getting the whole event.
"comments": [
{
"id": 23,
"user_id": 9,
"commentable_id": 12,
"commentable_type": "Event",
"content": "This is the content of the event",
"created_at": "2013-04-19 19:28:42.533901",
"updated_at": "2013-04-19 19:28:42.533901"
}
]