From 6d555b93a94e959095008ce51b4dacd986998eec Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 13 Oct 2025 20:25:59 +0200 Subject: [PATCH] feat: Added pact between `UserService` and `ChatBackendController` --- UserService-ChatBackendController.json | 72 ++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 UserService-ChatBackendController.json diff --git a/UserService-ChatBackendController.json b/UserService-ChatBackendController.json new file mode 100644 index 00000000..d9be1e70 --- /dev/null +++ b/UserService-ChatBackendController.json @@ -0,0 +1,72 @@ +{ + "consumer": { + "name": "UserService" + }, + "interactions": [ + { + "description": "a request to create a user", + "pending": false, + "providerStates": [ + { + "name": "there are 10 shards" + }, + { + "name": "the server is responsible for shard 2" + } + ], + "request": { + "headers": { + "Accept": [ + "application/json" + ] + }, + "matchingRules": { + "header": { + "Accept": { + "combine": "AND", + "matchers": [ + { + "match": "type" + } + ] + } + } + }, + "method": "POST", + "path": "/user/create" + }, + "response": { + "body": { + "content": { + "id": "5c73531c-6fc4-426c-adcb-afc5c140a0f7", + "shard": 2 + }, + "contentType": "application/json", + "encoded": false + }, + "headers": { + "Content-Type": [ + "application/json" + ] + }, + "status": 200 + }, + "type": "Synchronous/HTTP" + } + ], + "metadata": { + "pact-js": { + "version": "16.0.0" + }, + "pactRust": { + "ffi": "0.4.28", + "models": "1.3.5" + }, + "pactSpecification": { + "version": "4.0" + } + }, + "provider": { + "name": "ChatBackendController" + } +} \ No newline at end of file -- 2.39.5