Domanda di colloquio di Agrando

How would you design an API endpoint to represent a relationship between two entities?