- This assignment makes use of Google Maps Geocoding API available at location -- https://developers.google.com/maps/documentation/geocoding/intro
- Uses Swagger for API documentation, available at location (once assignment is up and running) -- http://localhost:8080/swagger-ui.html
- Uses H2 In-Memory Database, available at location -- http://localhost:8080/h2-console (no password required)
- Uses Spring Boot to build server side api
- Maven Build script is provided
- Test cases are provided
- Assignment code is available at Git location : https://github.com/tapanmh/SpringBootAssignment
- Sample JSON requests are available at location: {Project Root}/SpringBootAssignment/src/main/resources/sample_json_request/sample_request.json
- Get the project source from Github location https://github.com/tapanmh/SpringBootAssignment
- Run the Spring Boot application
- This application exposes API endpoint at URL : http://localhost:8080/shopapi
- Please use Swagger UI for Save and Retrieve shop details API: http://localhost:8080/swagger-ui.html Alternatively Chrome's Postman App can be used to execute Save and Retrieve shop API
- Sample JSON requests for shops be found at location : assignment-spring/src/main/resources/sample_request/sample_request.json
- Please run the generated Jar file to start the application
- Please use Swagger UI or POSTMAN to send a POST JSON request to save Shop Details at the application URL: http://localhost:8080/shopapi
Sample JSON Request for :
{ "shopName" : "Parijat Mithai", "shopAddress" : { "address" : "Sai Apex, Clover Park, Viman Nagar, Pune, Maharashtra", "postCode" : 411014 }
}
Sample JSON requests are available at location: {Project Root}/SpringBootAssignment/src/main/resources/sample_json_request/sample_request.json
- Please use Swagger UI or POSTMAN to send a GET request to retrieve shop details at the URL http://localhost:8080/shopapi
this URL accepts 2 parameters:- latitude
- longitude
Sample get URL is http://localhost:8080/shopapi?latitude=18.5649663&longitude=73.9144086