News for hackers. Stuff that matters.
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)