Everything service has examples now, fixes for client generator (#203)

This commit is contained in:
Janos Dobronszki
2021-09-13 16:19:53 +01:00
committed by GitHub
parent a9dfd7cc03
commit 6cb1a023aa
14 changed files with 581 additions and 119 deletions

48
postcode/examples.json Normal file
View File

@@ -0,0 +1,48 @@
{
"lookup": [
{
"title": "Lookup postcode",
"run_check": false,
"request": {
"postcode": "SW1A 2AA"
},
"response": {
"postcode": "SW1A 2AA",
"country": "England",
"region": "London",
"district": "Westminster",
"ward": "St James's",
"latitude": 51.50354,
"longitude": -0.127695
}
}
],
"random": [
{
"title": "Return a random postcode and its information",
"run_check": false,
"request": {},
"response": {
"postcode": "OX26 2HA",
"country": "England",
"region": "South East",
"district": "Cherwell",
"ward": "Bicester West",
"latitude": 51.907678,
"longitude": -1.163954
}
}
],
"validate": [
{
"title": "Return a random postcode and its information",
"run_check": false,
"request": {
"postcode": "SW1A 2AA"
},
"response": {
"valid": true
}
}
]
}