- Java + Spring Boot Application
- A controller as entry point and service layer with some utilities
- Generic exception handling for some I/O methods
- App runs on port
9000
- Swagger documentation available at:
- Postman collection available in the repository
- HealthCheck endpoint available at:
- Postman collection available in the repository
- Download locally, import maven projects & just run and have fun
From the command line:
mvn spring-boot:run
The application also contains a dockerfile. To build the image:
docker build -t spacecraft-app .
After building the image, run it with:
docker run -p 9000:9000 spacecraft-app
- All tests are in the test folder with 100% coverage
mvn clean install
Create a Spring Boot application in Java that uses 3 provided .json files as input, to combine
spacecraft onboard events with latitude and longitude positions to display the accurate geographic positions of each
event.
The .json files are:
events.json
- contains a list of events that occurred onboard a spacecraftlatitudes.json
- contains a list of latitudes that correspond to the events in the latitudes.json filelongitudes.json
- contains a list of longitudes that correspond to the events in the longitudes.json file
Requirements:
- Use the Spring Boot framework
- Json files should not be modified. They contain time-stamped latitude and longitude positions that change over time,
and spacecraft onboard events with
occurence_time
,event_name
andseverity
- The application should provide a REST interface offering its users with two features:
- Deliver the latitude & longitude for a given
event_id
- Deliver the whole list of events and associated positions
- Deliver the latitude & longitude for a given
- The
latitude
andlongitude
positions for events should be determined by matching the event'soccurrence_time
with the closest available positions in the latitudes.json and longitudes.json files. Indicate the potential error for each position.