generated from UK-Export-Finance/nestjs-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(DTFS-7052): added GET
/geospatial/addresses/postcode
endpoint …
…for Ordnance Survey API data (#804) ## Introduction ✏️ We are moving integration with Ordnance Survey API from DTFS to MDM API. ## Resolution ✔️ * Added new helper module `ordnance-survey` * Added new module `geospatial` with endpoint `/geospatial/addresses/postcode?postcode=SW1A2AQ` * returns same response format as DTFS. * returns `country` field, DTFS was always returning `{country: null}` * returns 200 [] for empty unsuccessful search. Response example: ``` [ { "organisationName": "CHURCHILL MUSEUM & CABINET WAR ROOMS", "addressLine1": "CLIVE STEPS KING CHARLES STREET", "addressLine2": null, "addressLine3": null, "locality": "LONDON", "postalCode": "SW1A 2AQ", "country": "England" } ] ``` ## Miscellaneous ➕ * Refactored `api-tests` to solve typescript type error. Looks like it started because of `supertest` update.
- Loading branch information
Showing
52 changed files
with
3,625 additions
and
2,235 deletions.
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
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
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
Oops, something went wrong.