OneDB icon indicating copy to clipboard operation
OneDB copied to clipboard

RFE: OpenAPI spec

Open ananace opened this issue 7 years ago • 1 comments

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.

ananace avatar Nov 21 '18 22:11 ananace

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 chat namespace, which will have paths like GET /data/chat/message/{id}, and the JSON schemas specific to the chat namespace

rbren avatar Nov 26 '18 15:11 rbren