Moved code a bit

This commit is contained in:
marcin
2016-07-08 16:13:26 +02:00
parent 52a12824a2
commit 6e397a6e5e
78 changed files with 0 additions and 40 deletions

View File

@@ -1,18 +0,0 @@
org.springframework.cloud.contract.spec.Contract.make {
request {
method 'POST'
url('/users') {
}
headers {
header 'Content-Type': 'application/json'
}
body '''{ "login" : "john", "name": "John The Contract" }'''
}
response {
status 200
headers {
header 'Location': '/users/john'
}
}
}

View File

@@ -1,22 +0,0 @@
{
"request" : {
"url" : "/users",
"method" : "POST",
"bodyPatterns" : [ {
"matchesJsonPath" : "$[?(@.login == 'john')]"
}, {
"matchesJsonPath" : "$[?(@.name == 'John The Contract')]"
} ],
"headers" : {
"Content-Type" : {
"equalTo" : "application/json"
}
}
},
"response" : {
"status" : 200,
"headers" : {
"Location" : "/users/john"
}
}
}