M
M
Mikhail Ivanov2017-08-04 01:07:09
MySQL
Mikhail Ivanov, 2017-08-04 01:07:09

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

3 answer(s)
I
idShura, 2019-03-13
@yagyar001

SELECT * 
       FROM transport 
                 LEFT JOIN cities ON transport.city = cities.id 
       where cities.id = ??

A
Anton, 2017-08-04
Reytarovsky @Antonchik

If you need to separately get a list of actors, then you need to have a link /actors

�
âš¡ Kotobotov âš¡, 2017-08-04
@angrySCV

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 question

Ask a Question

731 491 924 answers to any question