jeudi 5 janvier 2017

ember-data save and find with postgrest

ember-data understands json-api natively ,if we have to integrate ember-data and its save() and find() methods with postgrest style REST calls, where do we need to do changes ?

Do we need to modify client side in ember or some server side logic for mapping with ember-data requirements.

So postgrest REST api calls look like these to get films and their title and competition.name from related table ->

http://localhost:3001/film?select=title,competition{name}
http://localhost:3001/users?select=email::text&id=eq.2&sign_in_count=eq.16




Aucun commentaire:

Enregistrer un commentaire