Request for object relation
See original GitHub issueHi @jakewmeyer, was just wondering, would it be possible to query capsule parts and core parts via capsule id as well? That’d be very useful for connecting all together!
So instead of querying the api with this:
https://api.spacexdata.com/v2/parts/caps?type=Dragon 1.1
We could query like this, returning an array of caps or cores for this main type:
https://api.spacexdata.com/v2/parts/caps/dragon1
https://api.spacexdata.com/v2/parts/cores/dragon1
Or, instead of the above, send a small array of subtypes in the response object:
https://api.spacexdata.com/v2/capsules/dragon1
returns:
{
"id": "dragon1",
"caps": ["Dragon 1.0", "Dragon 1.1", ...],
"cores": ["B0004", "B0005", ...],
...
}
I’d appreciate the effort!
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Create service object relations - Dynamics 365 - Microsoft Learn
This article describes how to create service object relations for a service agreement and a service order.
Read more >Create a Related Object Relationship Between Service ...
A related object subtab lists records from one object that's related to another object. Using Application Composer, you can create one-to-many relationships ......
Read more >Object Relationships Overview - Salesforce Help
Create relationships to link objects with each other, so that when your users view records, they can also see related data. For example,...
Read more >Object Relations Therapy - Zencare
The aim of Object Relations Therapy is to better understand the way that you engage with the world through an understanding of your...
Read more >Understanding Object-Relational Mapping - AltexSoft
Once written, the ORM mapping will manage the application's data needs and you will not need to write any more low-level code. How...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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 😉