diff --git a/multi/multi_contract-dsl.html b/multi/multi_contract-dsl.html index b2cc040f4b..1574199565 100644 --- a/multi/multi_contract-dsl.html +++ b/multi/multi_contract-dsl.html @@ -1085,7 +1085,20 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e

YAML. 

request:
   method: GET
-  urlPath: /get
+  urlPath: /get/1
+  headers:
+    Content-Type: application/json
+  cookies:
+    foo: 2
+  queryParameters:
+    limit: 10
+    offset: 20
+    filter: 'email'
+    sort: name
+    search: 55
+    age: 99
+    name: John.Doe
+    email: 'bob@email.com'
   body:
     duck: 123
     alpha: "abc"
@@ -1100,6 +1113,35 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e
       "complex.key": 'foo'
     nullValue: null
   matchers:
+    url:
+      regex: /get/[0-9]
+      # predefined:
+      # execute a method
+      # command:
+    queryParameters:
+      - key: limit
+        type: equal_to
+        value: 20
+      - key: offset
+        type: containing
+        value: 20
+      - key: sort
+        type: equal_to
+        value: name
+      - key: search
+        type: not_matching
+        value: '^[0-9]{2}$'
+      - key: age
+        type: not_matching
+        value: '^\\w*$'
+      - key: name
+        type: matching
+        value: 'John.*'
+      - key: hello
+        type: absent
+    cookies:
+      - key: foo
+        regex: '[0-9]'
     headers:
       - key: Content-Type
         regex: "application/json.*"
@@ -1130,8 +1172,6 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e
         type: by_equality
       - path: $.nullvalue
         type: by_null
-  headers:
-    Content-Type: application/json
 response:
   status: 200
   body:
diff --git a/single/spring-cloud-contract.html b/single/spring-cloud-contract.html
index 2baf875677..2603038d4c 100644
--- a/single/spring-cloud-contract.html
+++ b/single/spring-cloud-contract.html
@@ -4476,7 +4476,20 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e
 

YAML. 

request:
   method: GET
-  urlPath: /get
+  urlPath: /get/1
+  headers:
+    Content-Type: application/json
+  cookies:
+    foo: 2
+  queryParameters:
+    limit: 10
+    offset: 20
+    filter: 'email'
+    sort: name
+    search: 55
+    age: 99
+    name: John.Doe
+    email: 'bob@email.com'
   body:
     duck: 123
     alpha: "abc"
@@ -4491,6 +4504,35 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e
       "complex.key": 'foo'
     nullValue: null
   matchers:
+    url:
+      regex: /get/[0-9]
+      # predefined:
+      # execute a method
+      # command:
+    queryParameters:
+      - key: limit
+        type: equal_to
+        value: 20
+      - key: offset
+        type: containing
+        value: 20
+      - key: sort
+        type: equal_to
+        value: name
+      - key: search
+        type: not_matching
+        value: '^[0-9]{2}$'
+      - key: age
+        type: not_matching
+        value: '^\\w*$'
+      - key: name
+        type: matching
+        value: 'John.*'
+      - key: hello
+        type: absent
+    cookies:
+      - key: foo
+        regex: '[0-9]'
     headers:
       - key: Content-Type
         regex: "application/json.*"
@@ -4521,8 +4563,6 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e
         type: by_equality
       - path: $.nullvalue
         type: by_null
-  headers:
-    Content-Type: application/json
 response:
   status: 200
   body:
diff --git a/spring-cloud-contract.xml b/spring-cloud-contract.xml
index bd7b763cc2..c088aceca9 100644
--- a/spring-cloud-contract.xml
+++ b/spring-cloud-contract.xml
@@ -7508,7 +7508,20 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e
 
 request:
   method: GET
-  urlPath: /get
+  urlPath: /get/1
+  headers:
+    Content-Type: application/json
+  cookies:
+    foo: 2
+  queryParameters:
+    limit: 10
+    offset: 20
+    filter: 'email'
+    sort: name
+    search: 55
+    age: 99
+    name: John.Doe
+    email: 'bob@email.com'
   body:
     duck: 123
     alpha: "abc"
@@ -7523,6 +7536,35 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e
       "complex.key": 'foo'
     nullValue: null
   matchers:
+    url:
+      regex: /get/[0-9]
+      # predefined:
+      # execute a method
+      # command:
+    queryParameters:
+      - key: limit
+        type: equal_to
+        value: 20
+      - key: offset
+        type: containing
+        value: 20
+      - key: sort
+        type: equal_to
+        value: name
+      - key: search
+        type: not_matching
+        value: '^[0-9]{2}$'
+      - key: age
+        type: not_matching
+        value: '^\\w*$'
+      - key: name
+        type: matching
+        value: 'John.*'
+      - key: hello
+        type: absent
+    cookies:
+      - key: foo
+        regex: '[0-9]'
     headers:
       - key: Content-Type
         regex: "application/json.*"
@@ -7553,8 +7595,6 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e
         type: by_equality
       - path: $.nullvalue
         type: by_null
-  headers:
-    Content-Type: application/json
 response:
   status: 200
   body: