Pergunta de entrevista da empresa Agrando

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