Sha256: 545610ab1d749a3f6ed1c0c4addb043ea3fe1bbdbdbdd63d323fe4097829aa44
Contents?: true
Size: 1.16 KB
Versions: 7
Compression:
Stored size: 1.16 KB
Contents
# A pact between Some Consumer and Some Provider ### Requests from Some Consumer to Some Provider * [A request for alligators in Brüssel](#a_request_for_alligators_in_Brüssel_given_alligators_exist) given alligators exist * [A request for polar bears](#a_request_for_polar_bears) ### Interactions <a name="a_request_for_alligators_in_Brüssel_given_alligators_exist"></a> Given **alligators exist**, upon receiving **a request for alligators in Brüssel** from Some Consumer, with ```json { "method": "get", "path": "/alligators" } ``` Some Provider will respond with: ```json { "status": 200, "headers": { "Content-Type": "application/json" }, "body": { "alligators": [ { "name": "Bob", "phoneNumber": "12345678" } ] } } ``` <a name="a_request_for_polar_bears"></a> Upon receiving **a request for polar bears** from Some Consumer, with ```json { "method": "get", "path": "/polar-bears" } ``` Some Provider will respond with: ```json { "status": 404, "headers": { "Content-Type": "application/json" }, "body": { "message": "Sorry, due to climate change, the polar bears are currently unavailable." } } ```
Version data entries
7 entries across 7 versions & 1 rubygems