Skip to content

Commit

Permalink
docs: update examples
Browse files Browse the repository at this point in the history
- Update links to point to correct tests
- Add additional plugin/workshop examples
  • Loading branch information
YOU54F authored Apr 23, 2024
1 parent 13df9cd commit be42b22
Showing 1 changed file with 35 additions and 4 deletions.
39 changes: 35 additions & 4 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!

0 comments on commit be42b22

Please sign in to comment.