You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.
I think this is currently not possible in Spine. What you can do is POST it to /v1/energy_assessments. If you assign a user to the user property, Spine should include the id of this user in the payload under the relationships key.
You can log all the network requests by setting the log level to debug: Spine.setLogLevel(.debug, forDomain: .networking). This will include the POST body as well.
Hello,
I was wondering how I'd go about posting to a resource that belongs to another resource?
We have endpoints for a user at
v1/users
and for an energy assessment at/v1/users/{id}/energy_assessment
My POST to users works fine, but I'm struggling to POST to the energy assessment.
My EnergyAssessment object:
And my API helper method:
And it should be noted that Spine was initialized with a baseURL that looks like
https://myurl.com/v1
Any advice?
The text was updated successfully, but these errors were encountered: