From cafe8a20aedb014798f349b1759e800f7cac5095 Mon Sep 17 00:00:00 2001 From: Atsushi SAKAI Date: Mon, 10 Aug 2015 19:43:43 +0900 Subject: [PATCH] Add GET servers API sorting REST API Add sort_key and sort_dir discription I add v2.1 only, if needed I plan to add v2 also. But for v2 case, it need to existence "os-server-sort-keys" API. Change-Id: I3d97652c925ef106421245a3a359b47949334240 Closes-Bug: #1398288 --- .../src/wadls/compute-api/src/v2.1/common.ent | 56 +++++++++++++++++++ .../src/v2.1/wadl/os-server-usage-v2.1.wadl | 8 ++- api-ref/src/wadls/image-api/src/v2/common.ent | 2 - 3 files changed, 63 insertions(+), 3 deletions(-) diff --git a/api-ref/src/wadls/compute-api/src/v2.1/common.ent b/api-ref/src/wadls/compute-api/src/v2.1/common.ent index 6d9076986..2a8349bb4 100644 --- a/api-ref/src/wadls/compute-api/src/v2.1/common.ent +++ b/api-ref/src/wadls/compute-api/src/v2.1/common.ent @@ -480,6 +480,62 @@ xml:lang="EN"> Filters the results by a specified host name in string format. + + + + + Sorts by the requested server attribute. Default is + created. You can specify multiple pairs of sort key and + sort direction query parameters. If you omit the sort direction in a + pair, the API uses the natural sorting direction of the server attribute + that is provided as the sort_key. + + + + + + + Sort direction. A valid value is asc (ascending) or + desc (descending). Default is desc. You can + specify multiple pairs of sort key and sort direction query parameters. If + you omit the sort direction in a pair, the API uses the natural sorting + direction of the server attribute that is provided as the + sort_key. + + +'> + + + + + Sorts by the requested server attribute. Default is + created. You can specify multiple pairs of sort key and + sort direction query parameters. If you omit the sort direction in a + pair, the API uses the natural sorting direction of the server attribute + that is provided as the sort_key. + + + + + + + Sort direction. A valid value is asc (ascending) or + desc (descending). Default is desc. You can + specify multiple pairs of sort key and sort direction query parameters. If + you omit the sort direction in a pair, the API uses the natural sorting + direction of the server attribute that is provided as the + sort_key. + + '> - List details for servers. + + Lists details for servers. + + + &serverListDetailsParameters; + + diff --git a/api-ref/src/wadls/image-api/src/v2/common.ent b/api-ref/src/wadls/image-api/src/v2/common.ent index 5ffc2549e..42381f821 100644 --- a/api-ref/src/wadls/image-api/src/v2/common.ent +++ b/api-ref/src/wadls/image-api/src/v2/common.ent @@ -189,11 +189,9 @@ - Sorts by one or more attribute and sort direction combinations. You can also set multiple sort keys and directions. Default direction is desc. - For example: GET /v2/images?sort=name:asc,status:desc