Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to perform throttling based on api endpoint

Not applicable

I have two api products for an api proxy. The resource path in those products is api/v1/* . The two api products have different quota policy. One has 5 calls per hour and another has 10 calls per hour. I decide the api product based on a header value "account". I have 20 different endpoints such as api/v1/users, api/v1/employees and api/v1/accounts.

Now I want to perform throttling based on a single api endpoint. For GET api request for the path api/v1/contacts alone I want to give 100 calls per hour. How to do this?

1 7 870
7 REPLIES 7