/iss_location_api

An API that shows the current location of the International Space Station. The number of people in space at any given moment

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

ISS Location API

Build Status Coverage Status

An API that shows the current location of the International Space Station. The number of people in space at any given moment

TECHNOLOGIES USED


  • Back-end: Node.js, Express.js
  • Database: MongoDB

Usage

  • Clone or download the repo
  • npm install - to install the dependencies needed by the app
  • create a .env file, insert data as seen in .env.example file
  • npm start - to run the app

API ENDPOINTS


Request End Point Action Response Data
POST /api/v1/auth/signup Create a new user {
username: 'string',
email: 'string'
password: 'string'
}
POST /api/v1/auth/login Logs in user {
email: 'string'
password: 'string'
}
POST api/v1/iss/location Add user ISS location search history {
location: {
  latitude: {
   type: String,
 },
  longitude: {
   type: String,
 }
},
altitude: {
 type: String
},
datetime: {
 type: String
},
passes: [
 {
  risetime: String,
  duration: String,
 }
 ],
}
GET api/v1/iss/location Get user ISS location search history null