I’m trying to parse the GitHub API with RestKit, and specifically the commits of a repository.
You can see in their documentation that there are nested attributes, like the “commit” hash. There attributes, though, are part of the main object and I wouldn’t want adding a new model and a relationship for this.
How can I add a mapping to the commit message there ?
It depends on the kind of Core Data model you’re trying to get, but from what I understand maybe you could just flatten the API resource and set the
messageas a direct attribute of yourcommitobject.Something like this: