0
엔티티 1에는 엔티티 2에 대한 외래 키가 있습니다. 둘 다 가져 오려면 두 개의 API가 트리거되어야합니다.RestKit : 관계가있는 두 엔티티에 대한 고유 API
http://api1...
JSON :
Entity 1 : {
property1 : value1,
property1 : value1,
foreighKeyToEntity2: value3
}
는 제 2 엔티티에게
http://api2/.../propertyA=value3
JSON을 가져올 수 : 1 관계 :
Entity 2 : {
propertyA : value1, (wich equesls to foreighKeyToEntity2 of Entity1)
propertyB : valueA,
propertyC : valueB,
}
두 엔티티 1 코어 데이터 표현이있다. 하지만 restKit을 사용하여 서버에서 데이터를 가져 오는 방법은 무엇입니까?