Coder Social home page Coder Social logo

graphql-spacex-api's Introduction

Imgur

SpaceX GRAPHQL API motivation https://github.com/r-spacex/SpaceX-API

Build Status Interface

Open Source GRAPHQL API for rocket, core, capsule, pad, and launch data



Documentation

Documentation

Usage / Endpoints

TODO

Example Response

  query {
    allCapsules {
      _id
      capsule_serial
      capsule_id
      status
      original_launch
      type
      details
    }
  }
{
  "data": {
    "allCapsules": [
      {
        "_id": "596eb5fc611279d39a000001",
        "capsule_serial": "C101",
        "capsule_id": "dragon1",
        "status": "retired",
        "original_launch": "2010-12-08",
        "type": "Dragon 1.0",
        "details": "Reentered after three weeks in orbit"
      },
      {
        "_id": "596eb5fc611279d39a000002",
        "capsule_serial": "C102",
        "capsule_id": "dragon1",
        "status": "retired",
        "original_launch": "2012-05-22",
        "type": "Dragon 1.0",
        "details": "First Dragon soacecraft"
      },
     ]
    }
  }
{
	allUpcomings {
    _id
    launch_year
    rocket {
      rocket_id
      first_stage{
        cores {
          reused
          land_success
          flight
          landing_type
        }
      }
    }
  }
}
{
  "data": {
    "allUpcomings": [
      {
        "_id": "5ac10a0079d57205a0196397",
        "launch_year": "2018",
        "rocket": {
          "rocket_id": "falcon9",
          "first_stage": {
            "cores": [
              {
                "reused": true,
                "land_success": null,
                "flight": 2,
                "landing_type": null
              }
            ]
          }
        }
      },
      {
        "_id": "5ad7cdcd79d5727fb193df76",
        "launch_year": "2018",
        "rocket": {
          "rocket_id": "falcon9",
          "first_stage": {
            "cores": [
              {
                "reused": true,
                "land_success": null,
                "flight": 2,
                "landing_type": null
              }
            ]
          }
        }
      },
      ...

Contributions

See the Contribution guide for detailed steps

Local Development

Local development info can be found here

Technical Details

  • API is using Graphql-Yoga
  • All data stored in a MongoDB Atlas 3 node replica set cluster
  • Uses Jest and Supertest for unit/integration testing
  • Uses Travis CI for continuous integration/delivery
  • API deployed TODO

FAQ's

  • If you have any questions or corrections, please open an issue and we'll get it merged ASAP
  • All data and photos are property of Space Exploration Technologies Corporation (SpaceX)
  • I am not affiliated with SpaceX in any way, shape, form, or fashion. Just a fun side project for me
  • For any other questions or concerns, just shoot me an email

License

FOSSA Status

Prisma

graphql-spacex-api's People

Contributors

ronal2do avatar fossabot avatar

Stargazers

Roman avatar Jake Meyer avatar Matheus Correia avatar Sibelius Seraphini avatar Timothy Dang avatar Lucas Bento avatar

Watchers

James Cloos avatar  avatar

Forkers

fossabot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.