Hello all!
I’m very new to ember, but going to introduce to my colleagues how it’s possible to create a RESTful APIs in Ember.
I think I have only this week to show my test results, so I’m in rush.
UI is the low priority.
I need create a RESTful APIs
, with the URLs:
-
<url>/api/teachers/
- the list of allteachers
-
<url>/api/teachers/:teacher_id/students/
- the list of allstudents
for this giventeacher
-
<url>/api/students/
- the list of allstudents
-
<url>/api/students/:student_id/teachers
- the list of allteachers
for this givenstudent
I have some ebooks for beginners to start with, but I don’t have resources which shows how to make RESTful APIs with database that have many-to-many
relations like in this example.
Can you please please give me some orientation on solving this problem?
Thanks in advance.
PS: Not sure if I had to post this in the Ember-data
category…