How to implement complex queries with a REST api?
问题 I'm building an EmberJS app using ember-data. Some of the functionality in my app requires quite complex queries. As an example, let's say I have three entities - students, teachers and classes. If I wanted to get a list of all the students born before 1993 that are taking classes taught by teacher X, how can I do that with a RESTful api? In plain SQL it's easy enough, but I'm unsure of the best practice for implementing this into my API. Do I need to build a custom endpoint alongside my