Skip to content

bchinmz/distance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostcodeApplication

This PostcodeApplication will populate in memory H2 database based on ukpostcodes.csv file upon start up

Swagger doc: http://localhost:8080/swagger-ui/index.html#/

Endpoints Description
GET /distances/calc Calculates the distance between 2 postcodes
GET /postcodes/{postcode} Retrieve the coordinates based on postcode
PUT /postcodes/{postcode} Updates the coordinates based on postcode

Add ons:

  • Unit test: PostcodeControllerTest and DistanceControllerTest
  • Integration test: DistanceControllerIntegrationTest
  • request to update coordinates based on post codes
  • log 2 postcodes for distance calculator request
  • add basic authentication

Test credentials

username: user

password: password

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages