Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.11 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.11 KB

Galaxy Explorer V2

A galaxy exploration API implemented using Zeit Now's serverless functions

Check it out here: https://galaxy-explorer-v2.now.sh/

Endpoints

GET /api/clusters/{clusterName}

Returns the information of the given cluster.

GET /api/clusters/{clusterName}/systems

Returns the names of all the systems in the given cluster.

GET /api/clusters/{clusterName}/systems/{systemName}

Returns the information of the given system.

GET /api/clusters/{clusterName}/systems/{systemName}/planets

Returns the names of all the planets in the given system.

GET /api/clusters/{clusterName}/systems/{systemName}/planets/{planetName}

Returns the information of the given planet.

GET /api/locate/{planetName}

Returns the full path to the given planet in the galaxy, i.e. Cluster -> System -> Planet.

E.g.:

  • /api/locate/Thessia => Athena Nebula -> Parnitha -> Thessia

  • /api/locate/Earth => Local Cluster -> Sol -> Earth

GET /api/gasgiants

Returns a list of all the gas giants in the galaxy.

Note: Gas giants have no surface temperature, so their temp is set to N/A.