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.
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 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.
You make them sound like junkyard dogs :)
Edit: Added smiley face to show I was merely amused by the phrasing.
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.
Is there even an equvalent of XSD but for JSON?
Doesn't look like there's any schema or spec in the repo.
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/
At the bottom, "Endpoints".
We are doomed.