Hello - Can someone please share Java-based sample...
# general
s
Hello - Can someone please share Java-based samples for third-party integrations? For example, if I wanted to integrate with Amazon, it includes signup/signin, adding items, cart, payments, etc
b
What kind of samples are you looking for? They’ll have to be bidirectional (unless you know people at Amazon), so from the provider end all you need is an OpenAPI spec. For the consumer side, it can be just a regular Pact-generated contract (dozens of examples out there) unless the Amazon API is super niche (which I doubt). Or you could generate a consumer contract from your integration tests that run a WireMock-based simulation of the Amazon API.
s
@Bas Dijkstra - Amazon APi is an example. I was purely talking with respect to 3rd party integrations
Where can I get those? any link could be super helpful. Thx
dozens of examples out there
b
Here’s one I created myself. Look for the integration between order_consumer and payment_provider https://github.com/basdijkstra/introduction-to-contract-testing/tree/bdct_example