News for hackers. Stuff that matters.
Re:Open Source REST API for SpaceX data by alien1993 on Thursday August 16, 2018 @04:54AM (#17773089)
Just want to point out that this is not an official API made by SpaceX, but by people hanging around https://www.reddit.com/r/spacex.
Re:Open Source REST API for SpaceX data by scandox on Thursday August 16, 2018 @05:23AM (#17773190)
> hanging around

You make them sound like junkyard dogs :)

Edit: Added smiley face to show I was merely amused by the phrasing.

Re:Open Source REST API for SpaceX data by mrmondo on Thursday August 16, 2018 @05:31AM (#17773212)
Bit harsh wording wise, but yeah I totally agree that’s a rough description of a community that made something neat.
Re:Open Source REST API for SpaceX data by whymauri on Thursday August 16, 2018 @05:37AM (#17773224)
Is this a generational disconnect? I have no negative connotations of the phrase "hanging around" (currently in college). Just curious.
Re:Open Source REST API for SpaceX data by mrmondo on Thursday August 16, 2018 @05:41AM (#17773241)
Perhaps, I’m 30 if that helps.

In _this_ context it sounded very derogatory, as if they had nothing better to do and were just doing something likely useless or some such.

Re:Open Source REST API for SpaceX data by magnat on Thursday August 16, 2018 @06:06AM (#17773328)
Is there a schema definition available for this API or you are supposed to figure it out by looking at actual replies and hope it doesn't change?

Is there even an equvalent of XSD but for JSON?

Re:Open Source REST API for SpaceX data by growse on Thursday August 16, 2018 @06:09AM (#17773343)
Like http://json-schema.org/, or https://swagger.io/specification/ ?

Doesn't look like there's any schema or spec in the repo.

Re:Open Source REST API for SpaceX data by oneweekwonder on Thursday August 16, 2018 @10:09AM (#17774697)
Example of using json-schema will be json-editor[0] and for swagger(openapi) the online specification editor[1].

You can also generate client and server code from your swagger spec for multiple languages. The generated code a bit crude. But you can tweak swagger-code-gen to fit your needs.

[0]: https://json-editor.github.io/json-editor/

[1]: https://editor.swagger.io/

Re:Open Source REST API for SpaceX data by ambicapter on Saturday August 18, 2018 @07:57PM (#17791612)
Re:Open Source REST API for SpaceX data by TomMarius on Thursday August 16, 2018 @04:49AM (#17773072)
What could that be used for, apart from news reporting automation?
Re:Open Source REST API for SpaceX data by kuroikyu on Thursday August 16, 2018 @05:11AM (#17773148)
I used it as a data source when I wanted to learn React: https://kuroikyu.github.io/spacex-launches/
Re:Open Source REST API for SpaceX data by spacenick88 on Thursday August 16, 2018 @05:36AM (#17773219)
Great site, thank you! Looking at the Falcon Heavy Roadster launch, is it intended that all stages have "Land success: x" even though just the center core failed to land?
Re:Open Source REST API for SpaceX data by kuroikyu on Thursday August 16, 2018 @05:47AM (#17773257)
Thank you! You're right, I'll have to investigate. It's been a while since I made it and I might have missed something, good catch!
Re:Open Source REST API for SpaceX data by perilunar on Thursday August 16, 2018 @05:32AM (#17773215)
Nice site!
Re:Open Source REST API for SpaceX data by al_ramich on Thursday August 16, 2018 @05:08AM (#17773138)
was thinking the same. not sure why tracking the boosters individually would be useful to most. I suppose the competitors might be interested.
Re:Open Source REST API for SpaceX data by cnorthwood on Thursday August 16, 2018 @05:07AM (#17773135)
I wonder if this kind of data would be better structured in a semantic web way, with a well-defined schema and RDF rather than a siloed JSON REST thing.
Re:Open Source REST API for SpaceX data by seanhandley on Thursday August 16, 2018 @06:06AM (#17773327)
I smell a GraphQL rewrite!
Re:Open Source REST API for SpaceX data by gregman1 on Thursday August 16, 2018 @05:50AM (#17773271)
.Net, PowerShell

We are doomed.