WIP
[demos/example-siren] / spring-consumer / target / pacts / SpringConsumer-Siren Order Provider.json
index dbc0978..ae1e66d 100644 (file)
               "name": "delete"
             }
           ],
+          "class": [
+            "entity"
+          ],
           "entities": [
 
+          ],
+          "links": [
+            {
+              "href": "http://localhost:8080/orders",
+              "rel": [
+                "self"
+              ]
+            }
           ]
         },
         "generators": {
           "body": {
+            "$.links[0].href": {
+              "example": "http://localhost:8080/orders",
+              "regex": ".*\\/(\\Qorders\\E)$",
+              "type": "MockServerURL"
+            },
             "$[0].href": {
               "example": "http://localhost:8080/1234",
               "regex": ".*\\/(\\Q1234\\E)$",
                   ]
                 }
               ]
+            },
+            "$.links[0].href": {
+              "combine": "AND",
+              "matchers": [
+                {
+                  "match": "regex",
+                  "regex": ".*\\/(\\Qorders\\E)$"
+                }
+              ]
             }
           }
         },