Closed koraykoska closed 7 years ago
Can you post here the response from the server? If you enable logging Spine will output it to the console: Spine.setLogLevel(.logDebug, forDomain: .networking)
Ok I am sorry, the server responded with a wrongly rendered 500 Internal Server error and I didn't recognize it because the tests passed. This is an issue with my backend, not with Spine. Thank you for the tip.
I have a profile model like that:
Now if I have two profiles, which are already saved, and I want to link them together (so profile1 starts following profile2), I get a
Spine.SerializerError.topLevelEntryMissing
.The result is always the same:
Am I doing something wrong? Doing self-joined relationships should be compliant with JSONAPI as well as naming to-many-relationships other than the pluralized resource name, so Spine should support this.