Jump to: navigation, search

Difference between revisions of "Trove/list-datastore-type-and-versions"

Line 5: Line 5:
  
 
== Justification/Benefits ==
 
== Justification/Benefits ==
* Instead of making n+1 calls, this API call will fetch datastore type and version in a single call
+
* Instead of making n+1 calls, this API call will fetch datastore type and version, 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
 
* This call can vastly improve the user experience for retrieving all the supported datastore types and versions
  
Line 33: Line 33:
 
"name": "MySQL 5.1"
 
"name": "MySQL 5.1"
 
"manager": "mysql"
 
"manager": "mysql"
 +
"default": "False"
 
},  
 
},  
 
{
 
{
Line 41: Line 42:
 
"name": "MySQL 5.5"
 
"name": "MySQL 5.5"
 
"manager": "mysql"
 
"manager": "mysql"
 +
"default": "True"
 
}
 
}
 
{
 
{
Line 49: Line 51:
 
"name": "Redis 2.8"
 
"name": "Redis 2.8"
 
"manager": "redis"
 
"manager": "redis"
 +
"default": "True"
 
}
 
}
 
]
 
]

Revision as of 19:40, 25 April 2014

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, this API call will fetch datastore type and version, 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 5.1"
"manager": "mysql"
"default": "False"
}, 
{
"id": "e00000e0-00e0-0e00-00e0-000e000000ee", 
"links": [
……..
], 
"name": "MySQL 5.5"
"manager": "mysql"
"default": "True"
}
{
"id": "100000e0-00e0-0e00-00e0-000e000000ff", 
"links": [
……..
], 
"name": "Redis 2.8"
"manager": "redis"
"default": "True"
}
]
}

Comments/Questions From Community