Comments (6)
Whoops, I wasn't aware about the cores entity and what it meant in the context of the rocket. I know now that it's all about the 1st stage? Since these aren't necessarily linked to a specific type of rocket but more to a build, the cores endpoint I specified above can be ignored. Sorry ;-)
from spacex-api.
Changes are live, I'll update the wiki shortly
https://api.spacexdata.com/v2/parts/caps?capsule_id=dragon1
https://api.spacexdata.com/v2/parts/caps?capsule_id=dragon2
from spacex-api.
First option should be no problem, Don't really know how to aggregate the data to form the second example. I'll look into it further.
Only issue I see is a conflict between different params on the same endpoint, for example:
https://api.spacexdata.com/v2/parts/caps/dragon1
https://api.spacexdata.com/v2/parts/caps/C112
from spacex-api.
Perhaps a search param, like the following could to the trick:
https://api.spacexdata.com/v2/parts/caps?capsule=dragon1
https://api.spacexdata.com/v2/parts/cores?capsule=dragon1
I've checked the database and I think it can be done by adding capsule_id
to the caps part objects and core parts objects. A ...parts/caps?capsule=dragon1
query can then select all capsules/cores containing this capsule_id
. This seems like a one-to-many relationship. Correct me if I'm wrong :)
from spacex-api.
I think I understand now, makes sense to add it to caps. What about cores though?
from spacex-api.
Thanks Jake!
from spacex-api.
Related Issues (20)
- Querying launches against a provided array of values HOT 2
- Small patch images now have black backgrounds, no longer transparent HOT 1
- Starlink 3-1 is missing payload HOT 1
- 403 Errors Suddenly HOT 7
- Getting 503 when requesting from Hetzner VPS HOT 2
- launches/query endpoint does not return launch IDs for ship and crew launches
- Hotbird 13F missing
- Future of the project HOT 9
- Incorrect data under "next" endpoint HOT 2
- USSF-4 is still under βupcomingβ despite it already happening HOT 1
- Website to add on 'List of known Apps'
- Data Inconsistency
- Is the API abandonned? HOT 3
- New app to add to the list of known apps
- Seems like Starlink API is outdated HOT 2
- spam / broken link
- Space π
- Error in server.js File - Uncaught Exception Handling
- Issues with fetching the YouTube ID for upcoming launches.
- allow users to make queries with "id" key along with "_id"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spacex-api.