question about <Hosted API Stubs>, this seems like...
# pactflow
h
question about Hosted API Stubs, this seems like a really useful feature as described in the blog post, eg starting your react app with the consumer pact stubs. however, how would one handle the case where a consumer (let's say react web app), has many providers? it looks like the api support in pactflow supports a stub endpont of 1:1 , provider:consumer. when really i want All Providers for a given consumer.
y
hey hey, you would get a hosted api stub for each consumer/provider pair, and provide them to your apps configuration, in the same way that you could configure your app to point at several real provideres
👍 1
m
Sorry I thought I had responded to this. Thanks for your response Yousaf.
when really i want All Providers for a given consumer.
Is that how you configure your app now? A single provider endpoint even if you have separate providers?
Usually, I would have my API client endpoint configurable, so then I can configure the location of each provider independently. In this case, it should work nicely with different stub URLs
👍 1