shahzadahmad
2017-02-22 13:07
hey guys.. new to pact here... we are using the pact-net version. So when a pact file is an interaction definition of the following. Does it create a pact that always when queried with 123 you get "Mike" back or when queried with an ID you get the response body of the structure specified
{
"description": "A GET request",
"request": {
"method": "get",
"path": "/customers/123",
"headers": {
"Accept": "application/json"
}
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json; charset=utf-8"
},
"body": {
"id": 123,
"firstName": "Mike",
"lastName": "Gore"
}
}
}