Agrando interview question

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