Answer the question
In order to leave comments, you need to log in
Related REST API resources?
Suppose there is a service like film search. How would it be more correct to organize the connection between such resources as "Film" and "Actor"? Is it correct to have multiple references for actors? /movie/{id}/actors and /actors/
Answer the question
In order to leave comments, you need to log in
SELECT *
FROM transport
LEFT JOIN cities ON transport.city = cities.id
where cities.id = ??
If you need to separately get a list of actors, then you need to have a link /actors
there is no hard specification.
Both options are fine, and several options are fine too)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question