minsql icon indicating copy to clipboard operation
minsql copied to clipboard

API for Datastore

Open dvaldivia opened this issue 5 years ago • 0 comments

We need an API implementation to do CRUD operations on the datastores object.

  • [x] Listing of datastores (GET)
  • [x] Creation of a datastore (POST)
  • [x] Viewing of individual datastores (GET)
  • [x] Updating individual fields of a field (PUT)
  • [x] Deletion of an object (DELETE)
GET: https://minsql/api/v1/datastores/:
  • Should return a list of all datastores
  • Pagination support is needed
  • Total number of datastores should be returned with each call
POST: https://minsql/api/v1/datastores/:
  • Creates a datastore object
GET: https://minsql/api/v1/datastores/<datastore_NAME>/
  • Should full details for an individual datastore
  • Listing of secrets is not allowed (SECRET KEY)
PUT: https://minsql/api/v1/datastores/<datastore_NAME>/
  • Should allow update of the fields on the datastore
DELETE: https://minsql/api/v1/datastores/<datastore_NAME>/
  • Should remove the datastore object

dvaldivia avatar Jun 27 '19 18:06 dvaldivia