Relationships
robothas manybrainsbrainhas onerobot
Background
How to form the resource URL where we provide a robotId (foreign key) to retrieve its brain?
I could come up with this resource: GET /robots/:robotId/brain
I am not sure if using brain in singular is against REST conventions and practices. However, using GET /robots/:robotId/brains (brain in plurals) implies a collection will be returned but it will always have 1 item only.
Question
Can you advise me on a RESTful way?
brainis identified via a foreign keyrobotId.