This repository was archived by the owner on Jan 25, 2019. It is now read-only.

Description
I am trying to implement save(POST) to my back-end, here is my request body:
"data": {
"type": "account",
"relationships": {
"account_type": {"data": {"type": "account_type", "id": "1"} },
"user": {
"data": {
"type": "user",
"attributes": {
"email": "[email protected]",
"firstname": "John",
"lastname": "Doe",
"company_name": "test company",
"phone": "381 11 232 342",
"address": " Venizelosova 43, 11000 Beograd, Serbia",
"latitude": 44.8112,
"longitude": "20.5342",
"description": "some description",
"website_url": "ar-ty.com",
"password": "password123",
"password_confirmation": "password123"
},
"relationships": { "role": { "data": {"type": "role", "id": "3"} } }
}
}
}
}
}
Does your lib support including attributes into relationship object, like in this json where relationship object has user with attributes. Please could you give me code example how to do this if possible?
Thanks in advance