This project using the API described here (https://api.nasa.gov/api.html)
-
GET list of dates: /api/v1/dates
- http://localhost:8080/api/v1/dates
The endpoint reads a.txt file that has the following dates and returns the dates formatted. The April 31, 2018 is not in a valid format.
02/27/17
June 2, 2018
Jul-13-2016
April 31, 2018
- http://localhost:8080/api/v1/dates
-
GET list of rovers: /api/v1/rovers
-
GET list of photos for a given date: /api/v1/rovers/{name}/photos?earth_date={earth_date}
-
GET an individual photo: /api/v1/rovers/{name}/photos/{id}?img_src={img_src}
- Download Repo using git clone
- Build project using Gradle
./gradlew clean build - Start up a Local instance of the Spring boot app
./gradlew bootRun - In a bash terminal perform curl commands using the examples above
curl http://localhost:8080/api/v1/rovers