worthy-azureW
Refine2y ago
7 replies
worthy-azure

Invalidating a nested resource after an update REST request

If my getOne api route is
/teams/{teamId}/members/{memberId}
its resource is '/teams/{teamId}/members'

I have a route that updates the member via
/teams/{teamId}/members/{memberId}/roles

which i want to invalidate '/teams/{teamId}/members'
but if i were to give it { resource: '/teams/{teamId}/members', id: memberId }, how do i append '/roles' to the end of the url?
Was this page helpful?