SpaceX GRAPHQL API motivation https://github.com/r-spacex/SpaceX-API
Documentation
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
}
]
}
}
},
...
See the Contribution guide for detailed steps
Local development info can be found here
- 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
- 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