Table reference and EDIT endpoints

Options
Hi everybody,
I am actually building a webapp similar to TripAdvisor but for local food stores.

I'll simplify my problem the most. I have a user table, with a table reference (called shop_owners) to my shop table. 
And I want these shops owners (and only them) to be able to edit their own shop's information. 

I know how to make a "basic" EDIT endpoint, but I have been struggling for hours trying to make this one. 

Would really appreciate your help !

Thanks

Comments