I'm building an API using Laravel where I need to use multiple One To One relationships. For nested resource where I use One to Many I defined the routes like this:
/api/scenarios/1/users --> return all users from a scenarios
/api/scenarios/1/users/1 --> return only the user with the id 1
How the One to One Api routes should be defined? Does it makes sense to provide the nested resource id? Example:
/api/scenarios/1/user/1
Or I can define it without the id:
/api/scenarios/1/user
Thanks!