Skip to content

Add a complete example with a consumer/provider service #1274

@JP-Ellis

Description

@JP-Ellis

Have you read the Contributing Guidelines on issues?

Description

To create an example following the new format to showcase how a service can be both a consumer and provider.

A hypothetical example within our standard user services:

sequenceDiagram participant User as User (Consumer) participant UserService as User Service (Consumer & Provider) participant AuthService as Auth Service (Provider) User->>UserService: Request to create account UserService->>AuthService: Validate credentials (Consumer) AuthService-->>UserService: Credentials valid/invalid UserService-->>User: Account created response 
Loading

Motivation

It is quite common for a service to be both a consumer and provider, but the usual Pact examples really only show them as being one or the other.

Have you tried building it?

No response

Self-service

  • I'd be willing to contribute this feature to Pact Python myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:documentationRelating to the documentationarea:examplesRelating to the examplesdifficulty:easyA simple task appropriate for newcomers to the codebasegood first issueGood for newcomerstype:chorePart of regular code upkeep

    Type

    No type

    Projects

    Status

    🚀 To-Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions