Yes, each API call is attributed to a single product but what happens if your plan has being exhausted because you always get (by change) the same product? Then your client get an error even it's only made a couple of calls, witch is very strange to explain to customers.
About the avoid of having API to multiple products that's also an option but could have business limitations if i've got a product with one single API and have another product that has multiple APIs witch one of them is the API that already exists in another product.
For me if this is not possible in IBM API Connect this is huge implementation and also a business failure
Cheers
PS: thanks for the discussion Chris, i'm not against anyone ;)
------------------------------
Nuno Ferreira
------------------------------
Original Message:
Sent: Wed September 21, 2022 07:16 AM
From: Chris Dudley
Subject: Multiple products to the same API
Each API call is only attributed to a single product even if the API is actually in multiple and the user is subscribed to them all. That is just how it works.
You can avoid the problem by not having the same API in multiple products that will be used by the same consumers.
------------------------------
Chris Dudley
Original Message:
Sent: Wed September 21, 2022 06:09 AM
From: Nuno Ferreira
Subject: Multiple products to the same API
Hi Chris,
Thanks for your comments.
But then how can the gateway count the number of calls that was subscribed in that product (through the plan).
I think this notion of what product was called is a need to have thing because the client subscribed a plan where the request should be counted.
Cheers
------------------------------
Nuno Ferreira
Original Message:
Sent: Wed September 21, 2022 02:43 AM
From: Chris Dudley
Subject: Multiple products to the same API
If the same application is subscribed to two products both including the same api then calls to that api are non-deterministic as to which product the call will be attributed to.
it could be either of them as there is no way for the gateway to determine what you want to happen in this scenario so it will essentially pick one at random.
------------------------------
Chris Dudley
Original Message:
Sent: Tue September 20, 2022 06:45 AM
From: Nuno Ferreira
Subject: Multiple products to the same API
Hi all,
I've come across a "problem" of concept and what will be the best way to solve the problem.
I've got the same api (API 1) inside multiple products (Product 1 and Product 2). Products that are subscribed in the same Application (using the same credentials).
These products have plans (let's say 10 requests per hour).
When the application is calling the API (API 1) which plan / product is updated in the call with the request?
What are the strategies so solve this kind of issue? What is the best?
Cheers
------------------------------
Nuno Ferreira
------------------------------