Hi, Is it possible to get the contract files( e.g. swagger files from provider side ) in pact-broker ?
m
Matt (pactflow.io / pact-js / pact-go)
06/13/2023, 6:29 AM
Thanks for moving it here Steven.
Matt (pactflow.io / pact-js / pact-go)
06/13/2023, 6:31 AM
You could probably get it from the APIs. We will be publishing our APIs in the next month or so, but for now, I’d look at the XHR calls from the PactFlow UI and use that URL.
What’s the use case?
s
Steven
06/13/2023, 7:50 AM
We already collect all swagger files from provider side, and upload them to pact-broker. I'd like to expose them to developer for reference purpose.
m
Matt (pactflow.io / pact-js / pact-go)
06/13/2023, 8:08 AM
How are you thinking about exposing them?
Matt (pactflow.io / pact-js / pact-go)
06/13/2023, 8:09 AM
Perhaps it helps for you to understand why I’m asking - you already have the OAS files (because you uploaded them to PactFlow). Why do you need to then get them back from PactFlow - what additional information/detail/value are you hoping to get from this that you couldn’t do without?