Sha256: f88ac483ca5e850bf94a9d88951c654df8a34260f2ddf81b72bafe66dd179859
Contents?: true
Size: 1.13 KB
Versions: 92
Compression:
Stored size: 1.13 KB
Contents
{ "provider": { "name": "Some Provider" }, "consumer": { "name": "Some Consumer" }, "interactions": [ { "description": "a request for alligators", "provider_state": "alligators exist", "request": { "method": "get", "path": "/alligators" }, "response": { "headers" : {"Content-Type": "application/json"}, "status" : 200, "body" : { "alligators": [{ "name": "Bob", "phoneNumber" : { "json_class": "Pact::Term", "data": { "generate": "12345678", "matcher": {"json_class":"Regexp","o":0,"s":"\\d+"} } } }] } } },{ "description": "a request for polar bears", "provider_state": null, "request": { "method": "get", "path": "/polar-bears" }, "response": { "headers" : {"Content-Type": "application/json"}, "status" : 404, "body" : { "message": "Sorry, due to climate change, the polar bears are currently unavailable." } } } ] }
Version data entries
92 entries across 92 versions & 3 rubygems