-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from hmrc/TAV-347
[PS] TAV-347 - Add API platform documentation for search by postcode POST endpoint
- Loading branch information
Showing
3 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"postcode": "AA1 1ZZ", | ||
"filter": "The Rectory" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"definitions": {}, | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://example.com/object1614266033.json", | ||
"title": "Root", | ||
"type": "object", | ||
"required": [ | ||
"postcode" | ||
], | ||
"properties": { | ||
"postcode": { | ||
"$id": "#root/postcode", | ||
"title": "Postcode", | ||
"description": "Full postcode to search for, all uppercase. The internal space may be omitted", | ||
"type": "string", | ||
"examples": [ | ||
"AA1 1ZZ", | ||
"BB00 0BB" | ||
] | ||
}, | ||
"filter": { | ||
"$id": "#root/filter", | ||
"title": "Filter", | ||
"description": "Refine the search results further based on house number or street name", | ||
"type": "string", | ||
"examples": [ | ||
"The Rectory", | ||
"1 High Street" | ||
] | ||
} | ||
} | ||
} |