WIP
[demos/example-siren] / spring-consumer / target / pacts / SpringConsumer-Siren Order Provider.json
index ac6731a..dbc0978 100644 (file)
               "href": "http://localhost:8080/1234",
               "method": "PUT",
               "name": "update"
+            },
+            {
+              "href": "http://localhost:8080/1234",
+              "method": "DELETE",
+              "name": "delete"
             }
           ],
           "entities": [
               "example": "http://localhost:8080/1234",
               "regex": ".*\\/(\\Q1234\\E)$",
               "type": "MockServerURL"
+            },
+            "$[1].href": {
+              "example": "http://localhost:8080/1234",
+              "regex": ".*\\/(\\Q1234\\E)$",
+              "type": "MockServerURL"
             }
           }
         },
                           ]
                         }
                       }
+                    },
+                    {
+                      "generators": {
+                        "$.href": {
+                          "example": "http://localhost:8080/1234",
+                          "regex": ".*\\/(\\Q1234\\E)$",
+                          "type": "MockServerURL"
+                        }
+                      },
+                      "index": 1,
+                      "rules": {
+                        "$.href": {
+                          "combine": "AND",
+                          "matchers": [
+                            {
+                              "match": "regex",
+                              "regex": ".*\\/(\\Q1234\\E)$"
+                            }
+                          ]
+                        },
+                        "$.method": {
+                          "combine": "AND",
+                          "matchers": [
+                            {
+                              "match": "type"
+                            }
+                          ]
+                        },
+                        "$.name": {
+                          "combine": "AND",
+                          "matchers": [
+                            {
+                              "match": "type"
+                            }
+                          ]
+                        }
+                      }
                     }
                   ]
                 }