Create a GET route '/api/all'
CjJordan opened this issue · 0 comments
CjJordan commented
Add a get route for the path '/api/all' return a sample JSON
{
copyright: "Xiaohan Wang",
date: "2018-03-06",
explanation: "Why would the sky glow like a giant repeating rainbow? Airglow. Now air glows all of the time, but it is usually hard to see. A disturbance however -- like an approaching storm -- may cause noticeable rippling in the Earth's atmosphere. These gravity waves are oscillations in air analogous to those created when a rock is thrown in calm water. Red airglow likely originates from OH molecules about 87-kilometers high, excited by ultraviolet light from the Sun, while orange and green airglow is likely caused by sodium and oxygen atoms slightly higher up. While driving near Keluke Lake in Qinghai Provence in China, the photographer originally noticed mainly the impressive central band of the Milky Way Galaxy. Stopping to photograph it, surprisingly, the resulting sensitive camera image showed airglow bands to be quite prominent and span the entire sky. The featured image has been digitally enhanced to make the colors more vibrant. Follow APOD on: Facebook, Google Plus, Instagram, or Twitter",
hdurl: "https://apod.nasa.gov/apod/image/1803/AirglowRings_Wang_3887.jpg",
media_type: "image",
service_version: "v1",
title: "Colorful Airglow Bands Surround Milky Way",
url: "https://apod.nasa.gov/apod/image/1803/AirglowRings_Wang_1080.jpg",
userDesc: ""
}
This issue is complete when:
- a GET route is created with the path '/api/all'
- when the route is hit the above JSON is returned to the front-end.