I have a GET endpoint that looks like this:
GET /tenant/:tenantId/groups?user=userName
Now, there is a corresponding POST endpoint as well. When the POST endpoint is used to update groups for the given username, I would like to defeat the cache for this GET endpoint with the username.
POST
request could be made by any user and not necessarily just this user so that the front-end would not know to call the API with the
Cache-Control: max-age=0
How do we invalidate the cache of an API gateway based on path parameters and query parameters?