OneDB
OneDB copied to clipboard
RFE: OpenAPI spec
Could an OpenAPI spec be written / provided for the REST APIs used in the communication with / between OneDB servers?
Such a thing would help immensely in developing applications using OneDB in other languages than JavaScript / ECMAScript and its derivatives. Native desktop and mobile applications, etc.
Additionally, having an available server communication spec could help with developing OneDB servers in other languages as well, which could also help with - in the future - building hostable appliances and the like utilizing OneDB.
Yes, this is definitely doable, and something we should aim for near-term.
There will likely be two options here:
- A generic spec, which will have paths like
GET /data/{namespace}/{type}/{id}, with generic JSON schemas for requests/responses - The ability to generate a spec for a specific set of namespaces, like the
chatnamespace, which will have paths likeGET /data/chat/message/{id}, and the JSON schemas specific to thechatnamespace