Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "consumer": {
- "name": "example-ui"
- },
- "provider": {
- "name": "example-backend"
- },
- "interactions": [
- {
- "_id": "64ace280d349f71ec4c57db269233aa9436c93b7",
- "description": "a request to GET regions",
- "providerState": "regions exist",
- "request": {
- "method": "GET",
- "path": "/api/regions"
- },
- "response": {
- "status": 200,
- "headers": {},
- "body": [
- {
- "id": 987,
- "name": "Periferia Z",
- "regional_units": [
- {
- "id": 654,
- "name": "a name Z1",
- "municipalities": [
- {
- "id": 321,
- "name": "mname Z11"
- }
- ]
- }
- ]
- }
- ],
- "matchingRules": {
- "$.body": {
- "min": 1
- },
- "$.body[*].*": {
- "match": "type"
- },
- "$.body[*].id": {
- "match": "type"
- },
- "$.body[*].regional_units": {
- "min": 1
- },
- "$.body[*].regional_units[*].*": {
- "match": "type"
- },
- "$.body[*].regional_units[*].municipalities": {
- "min": 1
- },
- "$.body[*].regional_units[*].municipalities[*].*": {
- "match": "type"
- }
- }
- }
- },
- {
- "_id": "5ad0173070aa769c9ca11e21dc918c4e31ef4885",
- "description": "a request to GET calls",
- "providerState": "calls exist",
- "request": {
- "method": "GET",
- "path": "/api/call"
- },
- "response": {
- "status": 200,
- "headers": {},
- "body": [
- {
- "id": 123,
- "title": "mpla mpla",
- "mis": "233445"
- }
- ],
- "matchingRules": {
- "$.body": {
- "min": 1
- },
- "$.body[*].*": {
- "match": "type"
- }
- }
- }
- }
- ],
- "metadata": {
- "pactSpecification": {
- "version": "3.0.0"
- }
- },
- "createdAt": "2021-04-01T20:27:21+00:00"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement