Jump to: navigation, search

Trove/list-datastore-type-and-versions

< Trove
Revision as of 14:14, 28 April 2014 by Nehav (talk | contribs) (Justification/Benefits)

Description

This blueprint will add an API call for retrieving datastore type and version in a single call.

Blueprint:

Justification/Benefits

  • Instead of making n+1 calls where n is the number of datastore types, this single API call will fetch all datastore types and version, and the manager in a single call. It will also show if the version is the default for that datastore.
  • This call can vastly improve the user experience for retrieving all the supported datastore types and versions

Impacts

Configuration

None

Database

No impact

ReST API

New API call: List All Datastore Types & Versions

Request

GET/{tenant_id}/datastoreandversions

Response

{
"datastores": [
{
"id": "10000000-0000-0000-0000-000000000001", 
"links": [
……
], 
"name": "MySQL"
"version": "5.1"
"manager": "mysql"
"default": "False"
}, 
{
"id": "e00000e0-00e0-0e00-00e0-000e000000ee", 
"links": [
……..
], 
"name": "MySQL"
"version": "5.5"
"manager": "mysql"
"default": "True"
}
{
"id": "100000e0-00e0-0e00-00e0-000e000000ff", 
"links": [
……..
], 
"name": "Redis"
"version": "2.8"
"manager": "redis"
"default": "True"
}
]
}

Comments/Questions From Community