Closed clapierre closed 3 years ago
@jkva can we discuss in this ticket the approach we are using for the JSON API documentation. @johnhbenetech I'd like to hopefully do this in such a way that it is automatically generated for you via a GitHub action, but let's discuss that once Job updates us on documentation approach.
I would suggest I write a yaml spec of the OpenAPI implementation the server follows - such as seen on https://editor.swagger.io/. This can then be used to generate similar documentation.
@johnhbenetech you good with the above?
@sinabahram @jkva works for me
The current implementation has been written to follow the json-api spec; Swagger speaks openapi
. While I could modify the request/response cycle to implement openapi
instead, it's currently an fairly simple read-only api. Moving to another spec seems overkill. I've added documentation in the main plugin README for now, eventually this might move to its own separate markdown file and be linked to from the main README.
Following up; if autogenerating documentation is a strongly desired feature, I can modify things accordingly to implement an openapi
compliant api. But given the current simplicity of the API I wonder if that's needed. @johnhbenetech what do you think?
@jkva README seems adequate. I don't imagine this changing frequently and significantly, so shouldnt be too much of a hassle.
Closing as adequately addressed.
Maybe a Github action to keep documentation up to date ...