Say a user does a GET to return all the services for a company by using the following url: /api/company/{id}/service
They then want to update one of the service objects that are returned. Should I follow the same convention and so get them to PUT to /api/company/{id}/service/{id} or make it a bit simpler and just get them to do PUT to /api/service/{id} as the service id is globally unique.
One reason I was doing the longer URL is that I want to check if the user belongs to the Company so I can easily check that upon the request as I have the Company Id but if I go the direct route I'd then have to find the Company Id from the service and check that.
I've had a quick search and couldn't see any obvious about what the standard is for this.
Thanks