Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4829

Adding inclusion of hasMany relationship while creating a record

$
0
0

@rishirajdev wrote:

Hi guys,

I am creating a crud operation and I already created rest api in golang and revel.Now I am integrating frontend as ember.I have two models one is user and another is address.There relationship is user hasMany address.However i will store user and address object as a single json document in mongodb only address will be embedded.While creating a record with post request ,my api need following json format :- https://github.com/rishirajdev/jsonAPIUnmarshal/blob/master/jsonFormat

however ember send request in the below json format: http://jsonapi.org/format/#crud-creating

How can I make ember to send json format the same which my api accepts

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles