Sha256: d4447de2d93d2f15961e90e71bc805c2e5b4a55e37f79c9ef6c1fe14a7b1ac1a

Contents?: true

Size: 1.99 KB

Versions: 2

Compression:

Stored size: 1.99 KB

Contents

{
  "producer": {
    "name": "Animal Service"
  },
  "consumer": {
    "name": "Zoo App"
  },
  "interactions": [
    {
      "description": "a request for animals",
      "request": {
        "method": "get",
        "path": "/animals"
      },
      "response": {
        "status": 200,
        "headers": {
          "Content-Type": "application/json"
        },
        "body": {
          "alligators": [
            {
              "name": "Bob"
            }
          ]
        }
      },
      "producer_state": "there are alligators"
    },
    {
      "description": "a request for alligators",
      "request": {
        "method": "get",
        "path": "/alligators",
        "headers": {
          "Accept": "application/json"
        }
      },
      "response": {
        "status": 200,
        "headers": {
          "Content-Type": "application/json"
        },
        "body": [
          {
            "name": "Bob"
          }
        ]
      },
      "producer_state": "there are alligators"
    },
    {
      "description": "a request for alligator Mary",
      "request": {
        "method": "get",
        "path": "/alligators/Mary",
        "headers": {
          "Accept": "application/json"
        }
      },
      "response": {
        "status": 200,
        "headers": {
          "Content-Type": "application/json"
        },
        "body": [
          {
            "name": "Mary"
          }
        ]
      },
      "producer_state": "there is an alligator named Mary"
    },
    {
      "description": "a request for alligators",
      "request": {
        "method": "get",
        "path": "/alligators",
        "headers": {
          "Accept": "application/json"
        }
      },
      "response": {
        "status": 500,
        "headers": {
          "Content-Type": "application/json"
        },
        "body": {
          "error": "Argh!!!"
        }
      },
      "producer_state": "an error has occurred"
    }
  ],
  "metadata": {
    "pact_gem": {
      "version": "0.1.32"
    }
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pact-0.1.37 example/zoo-app/spec/pacts/zoo_app-animal_service.json
pact-0.1.35 example/zoo-app/spec/pacts/zoo_app-animal_service.json