From ae0116c2f262fbdde96a5caf721f5cb3b915810d Mon Sep 17 00:00:00 2001 From: Dan Dan Song Date: Mon, 27 Jun 2016 16:42:28 +0800 Subject: [PATCH] api-ref: correct the order of APIs in server-tags The order of APIs in server-tags isn't match the rule as other api ref docs. This patch correct it. Part of bp:api-ref-in-rst Change-Id: Ie1a43863e4ede4f7a1e028131248263e9c5a434f --- api-ref/source/os-server-tags.inc | 86 +++++++++++++++---------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/api-ref/source/os-server-tags.inc b/api-ref/source/os-server-tags.inc index 66ee7896897d..69afbed4eb5f 100644 --- a/api-ref/source/os-server-tags.inc +++ b/api-ref/source/os-server-tags.inc @@ -54,26 +54,6 @@ Response .. literalinclude:: ../../doc/api_samples/os-server-tags/v2.26/server-tags-index-resp.json :language: javascript -Check Tag Existence -=================== - -.. rest_method:: GET /servers/{server_id}/tags/{tag} - -Checks tag existence on the server. If tag exists response with 204 status code -will be returned. Otherwise returns 404. - -Normal response codes: 204 - -Error response codes: unauthorized(401), forbidden(403), itemNotFound(404) - -Request -------- - -.. rest_parameters:: parameters.yaml - - - server_id: server_id_path - - tag: tag - Replace Tags ============ @@ -110,6 +90,49 @@ Response .. literalinclude:: ../../doc/api_samples/os-server-tags/v2.26/server-tags-put-all-resp.json :language: javascript +Delete All Tags +=============== + +.. rest_method:: DELETE /servers/{server_id}/tags + +Deletes all tags from the specified server. + +Normal response codes: 204 + +Error response codes: unauthorized(401), forbidden(403), itemNotFound(404) + +Request +------- + +.. rest_parameters:: parameters.yaml + + - server_id: server_id_path + +Response +-------- + +There is no body content for the response of a successful DELETE query + +Check Tag Existence +=================== + +.. rest_method:: GET /servers/{server_id}/tags/{tag} + +Checks tag existence on the server. If tag exists response with 204 status code +will be returned. Otherwise returns 404. + +Normal response codes: 204 + +Error response codes: unauthorized(401), forbidden(403), itemNotFound(404) + +Request +------- + +.. rest_parameters:: parameters.yaml + + - server_id: server_id_path + - tag: tag + Add a Single Tag ================ @@ -162,26 +185,3 @@ Response -------- There is no body content for the response of a successful DELETE query - -Delete All Tags -=============== - -.. rest_method:: DELETE /servers/{server_id}/tags - -Deletes all tags from the specified server. - -Normal response codes: 204 - -Error response codes: unauthorized(401), forbidden(403), itemNotFound(404) - -Request -------- - -.. rest_parameters:: parameters.yaml - - - server_id: server_id_path - -Response --------- - -There is no body content for the response of a successful DELETE query