--- /dev/null
+{
+ "consumer": {
+ "name": "frontend.ChatroomService"
+ },
+ "interactions": [
+ {
+ "description": "a request for /1",
+ "pending": false,
+ "providerStates": [
+ {
+ "name": "chatroom with ID \"1\" exists in shard \"7\""
+ }
+ ],
+ "request": {
+ "headers": {
+ "X-Shard": [
+ "6"
+ ]
+ },
+ "method": "GET",
+ "path": "/1"
+ },
+ "response": {
+ "status": 404
+ },
+ "type": "Synchronous/HTTP"
+ },
+ {
+ "description": "a request for /list",
+ "pending": false,
+ "providerStates": [
+ {
+ "name": "no chatrooms are known"
+ }
+ ],
+ "request": {
+ "method": "GET",
+ "path": "/list"
+ },
+ "response": {
+ "body": {
+ "content": [],
+ "contentType": "application/json",
+ "encoded": false
+ },
+ "headers": {
+ "Content-Type": [
+ "application/json"
+ ]
+ },
+ "status": 200
+ },
+ "type": "Synchronous/HTTP"
+ },
+ {
+ "description": "a request for /list",
+ "pending": false,
+ "providerStates": [
+ {
+ "name": "some chatrooms are known"
+ }
+ ],
+ "request": {
+ "method": "GET",
+ "path": "/list"
+ },
+ "response": {
+ "body": {
+ "content": [
+ {
+ "id": "1",
+ "name": "foo",
+ "shard": 7
+ }
+ ],
+ "contentType": "application/json",
+ "encoded": false
+ },
+ "headers": {
+ "Content-Type": [
+ "application/json"
+ ]
+ },
+ "matchingRules": {
+ "body": {
+ "$": {
+ "combine": "AND",
+ "matchers": [
+ {
+ "match": "type",
+ "min": 1
+ }
+ ]
+ }
+ }
+ },
+ "status": 200
+ },
+ "type": "Synchronous/HTTP"
+ }
+ ],
+ "metadata": {
+ "pactRust": {
+ "ffi": "0.4.28",
+ "models": "1.3.5"
+ },
+ "pactSpecification": {
+ "version": "4.0"
+ }
+ },
+ "provider": {
+ "name": "backend"
+ }
+}
\ No newline at end of file