Sha256: 8a8a46fdeb849898de232ff7785bbfc505de7879eb4f47384a51a5ba9b86e50a

Contents?: true

Size: 1.99 KB

Versions: 10

Compression:

Stored size: 1.99 KB

Contents

{
  "provider": {
    "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"
            }
          ]
        }
      },
      "provider_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"
          }
        ]
      },
      "provider_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"
          }
        ]
      },
      "provider_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!!!"
        }
      },
      "provider_state": "an error has occurred"
    }
  ],
  "metadata": {
    "pact_gem": {
      "version": "0.1.37"
    }
  }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pact-1.0.9 example/zoo-app/spec/pacts/zoo_app-animal_service.json
pact-1.0.8 example/zoo-app/spec/pacts/zoo_app-animal_service.json
pact-1.0.7 example/zoo-app/spec/pacts/zoo_app-animal_service.json
pact-1.0.6 example/zoo-app/spec/pacts/zoo_app-animal_service.json
pact-1.0.5 example/zoo-app/spec/pacts/zoo_app-animal_service.json
pact-1.0.4 example/zoo-app/spec/pacts/zoo_app-animal_service.json
pact-1.0.3 example/zoo-app/spec/pacts/zoo_app-animal_service.json
pact-1.0.2 example/zoo-app/spec/pacts/zoo_app-animal_service.json
pact-1.0.1 example/zoo-app/spec/pacts/zoo_app-animal_service.json
pact-1.0.0 example/zoo-app/spec/pacts/zoo_app-animal_service.json