Skip to content

Instantly share code, notes, and snippets.

@Lakitna
Created June 5, 2020 11:36
Show Gist options
  • Save Lakitna/ee3633ca7235d084e21c1fa6c69e153b to your computer and use it in GitHub Desktop.
Save Lakitna/ee3633ca7235d084e21c1fa6c69e153b to your computer and use it in GitHub Desktop.
{
"consumer": {
"name": "ui"
},
"provider": {
"name": "userservice"
},
"interactions": [
{
"description": "a request to POST a person",
"providerState": "provider accepts a new person",
"request": {
"method": "POST",
"path": "/user-service/users",
"headers": {
"Content-Type": "application/json"
},
"body": {
"firstName": "Arthur",
"lastName": "Dent"
}
},
"response": {
"status": 201,
"headers": {
"Content-Type": "application/json"
},
"body": {
"id": 42
},
"matchingRules": {
"$.body": {
"match": "type"
}
}
}
}
],
"metadata": {
"pactSpecification": {
"version": "2.0.0"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment