From be42b2251a959cca1fac87299340a520d8722b7d Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Tue, 23 Apr 2024 17:17:30 +0100 Subject: [PATCH] docs: update examples - Update links to point to correct tests - Add additional plugin/workshop examples --- docs/examples.md | 39 +++++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/docs/examples.md b/docs/examples.md index 0648238e4..0fae45bae 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -2,11 +2,42 @@ ## HTTP APIs -- [API V2 Consumer](https://github.com/pact-foundation/pact-go/tree/master/examples/consumer_test.go) -- [API V3 Consumer](https://github.com/pact-foundation/pact-go/tree/master/examples/consumer_test.go) +- [API V2 Consumer](https://github.com/pact-foundation/pact-go/tree/master/examples/consumer_v2_test.go) +- [API V3 Consumer](https://github.com/pact-foundation/pact-go/tree/master/examples/consumer_v3_test.go) +- [API V4 Consumer](https://github.com/pact-foundation/pact-go/tree/master/examples/consumer_v4_test.go) - [API Provider](https://github.com/pact-foundation/pact-go/tree/master/examples/provider_test.go) ## Asynchronous APIs -- [Message Consumer](https://github.com/pact-foundation/pact-go/tree/master/examples/consumer_test.go) -- [Message Provider](https://github.com/pact-foundation/pact-go/tree/master/examples/provider_test.go) +- [V3 Message Consumer](https://github.com/pact-foundation/pact-go/tree/master/examples/consumer_v3_test.go#L92) +- [V3 Message Provider](https://github.com/pact-foundation/pact-go/tree/master/examples/provider_test.go#L103) + +## Plugins + +### gRPC + +- [gRPC Consumer](https://github.com/pact-foundation/pact-go/tree/master/examples/grpc/grpc_consumer_test.go) +- [gRPC Provider](https://github.com/pact-foundation/pact-go/tree/master/examples/grpc/grpc_provider_test.go) + +### Protobuf + +- [Protobuf Consumer](https://github.com/pact-foundation/pact-go/tree/master/examples/protobuf-message/protobuf_consumer_test.go) +- [Protobuf Provider](https://github.com/pact-foundation/pact-go/tree/master/examples/protobuf-message/protobuf_provider_test.go) + +### Avro + +- [Avro Consumer](https://github.com/pact-foundation/pact-go/tree/master/examples/avro/avro_consumer_test.go) +- [Avro Provider](https://github.com/pact-foundation/pact-go/tree/master/examples/avro/avro_provider_test.go) + +### Custom Plugin + +- [Custom plugin Consumer](https://github.com/pact-foundation/pact-go/tree/master/examples/plugin/consumer_plugin_test.go) +- [Custom plugin Provider](https://github.com/pact-foundation/pact-go/tree/master/examples/plugin/provider_plugin_test.go) + +## Workshop + +- [Pact Workshop Go](https://github.com/pact-foundation/pact-workshop-go) + +## Community + +> If you have your own pact-go example repository, or blog post, please add it here!