From 90f4529d3d04138444652a6d9207ac8ac8b2f95c Mon Sep 17 00:00:00 2001 From: Mikhail Date: Thu, 6 Oct 2016 19:07:36 +0300 Subject: [PATCH] [api-ref] Fix missprints in response codes There is missprints in description of success/ error codes of POST, PUT, PATCH and DELETE requests. Change-Id: I251aedd6742e39fc0ba6ddbb72214cfc0f7ed099 Closes-bug: #1631410 --- api-ref/source/cluster-templates.inc | 8 +++----- api-ref/source/clusters.inc | 13 +++++-------- api-ref/source/data-sources.inc | 8 +++----- api-ref/source/image-registry.inc | 10 ++++------ api-ref/source/job-binaries.inc | 9 +++------ api-ref/source/job-binary-internals.inc | 9 +++------ api-ref/source/job-executions.inc | 8 ++------ api-ref/source/jobs.inc | 10 ++++------ api-ref/source/node-group-templates.inc | 8 +++----- 9 files changed, 30 insertions(+), 53 deletions(-) diff --git a/api-ref/source/cluster-templates.inc b/api-ref/source/cluster-templates.inc index 26ee411f..1e5b127a 100644 --- a/api-ref/source/cluster-templates.inc +++ b/api-ref/source/cluster-templates.inc @@ -19,7 +19,6 @@ Shows details for a cluster template. Normal response codes: 200 -Error response codes: Request @@ -72,7 +71,7 @@ Update cluster templates Updates a cluster template. -Error response codes:202, +Normal response codes:202 Request @@ -125,7 +124,7 @@ Delete cluster template Deletes a cluster template. -Error response codes:204, +Normal response codes:204 Request @@ -150,7 +149,6 @@ Lists available cluster templates. Normal response codes: 200 -Error response codes: Request @@ -208,7 +206,7 @@ Create cluster templates Creates a cluster template. -Error response codes:202, +Normal response codes:202 Request diff --git a/api-ref/source/clusters.inc b/api-ref/source/clusters.inc index 61cea9a5..909a9a9b 100644 --- a/api-ref/source/clusters.inc +++ b/api-ref/source/clusters.inc @@ -16,7 +16,6 @@ Lists available clusters. Normal response codes: 200 -Error response codes: Request @@ -71,7 +70,7 @@ Create cluster Creates a cluster. -Error response codes:202, +Normal response codes:202 Request @@ -118,7 +117,7 @@ Create multiple clusters Creates multiple clusters. -Error response codes:202, +Normal response codes:202 Request @@ -150,7 +149,6 @@ Shows details for a cluster, by ID. Normal response codes: 200 -Error response codes: Request @@ -197,7 +195,7 @@ Delete a cluster Deletes a cluster. -Error response codes:204, +Normal response codes:204 Request @@ -220,7 +218,7 @@ Scale cluster Scales a cluster. -Error response codes:202, +Normal response codes:202 Request @@ -266,7 +264,7 @@ Update cluster Updates a cluster. -Error response codes:202, +Normal response codes:202 Request @@ -314,7 +312,6 @@ Shows provisioning progress for a cluster. Normal response codes: 200 -Error response codes: Request diff --git a/api-ref/source/data-sources.inc b/api-ref/source/data-sources.inc index 676cbbbc..c6e772eb 100644 --- a/api-ref/source/data-sources.inc +++ b/api-ref/source/data-sources.inc @@ -20,7 +20,6 @@ Shows details for a data source. Normal response codes: 200 -Error response codes: Request @@ -66,7 +65,7 @@ Delete data source Deletes a data source. -Error response codes:204, +Normal response codes:204 Request @@ -89,7 +88,7 @@ Update data source Updates a data source. -Error response codes:202, +Normal response codes:202 Request @@ -121,7 +120,6 @@ Lists all data sources. Normal response codes: 200 -Error response codes: Request @@ -174,7 +172,7 @@ Create data source Creates a data source. -Error response codes:202, +Normal response codes:202 Request diff --git a/api-ref/source/image-registry.inc b/api-ref/source/image-registry.inc index d33209ad..d93f3ee4 100644 --- a/api-ref/source/image-registry.inc +++ b/api-ref/source/image-registry.inc @@ -18,7 +18,7 @@ Add tags to image Adds tags to an image. -Error response codes:202, +Normal response codes:202 Request @@ -51,7 +51,6 @@ Shows details for an image. Normal response codes: 200 -Error response codes: Request @@ -100,7 +99,7 @@ Register image Registers an image in the registry. -Error response codes:202, +Normal response codes:202 Request @@ -151,7 +150,7 @@ Unregister image Removes an image from the registry. -Error response codes:204, +Normal response codes:204 Request @@ -174,7 +173,7 @@ Remove tags from image Removes tags from an image. -Error response codes:202, +Normal response codes:202 Request @@ -207,7 +206,6 @@ Lists all images registered in the registry. Normal response codes: 200 -Error response codes: Request diff --git a/api-ref/source/job-binaries.inc b/api-ref/source/job-binaries.inc index 2c4423a5..0121503c 100644 --- a/api-ref/source/job-binaries.inc +++ b/api-ref/source/job-binaries.inc @@ -18,7 +18,6 @@ Lists the available job binaries. Normal response codes: 200 -Error response codes: Request @@ -71,7 +70,7 @@ Create job binary Creates a job binary. -Error response codes:202, +Normal response codes:202 Request @@ -118,7 +117,6 @@ Shows details for a job binary. Normal response codes: 200 -Error response codes: Request @@ -163,7 +161,7 @@ Delete job binary Deletes a job binary. -Error response codes:204, +Normal response codes:204 Request @@ -186,7 +184,7 @@ Update job binary Updates a job binary. -Error response codes:202, +Normal response codes:202 Request @@ -235,7 +233,6 @@ Example response: Normal response codes: 200 -Error response codes: Request diff --git a/api-ref/source/job-binary-internals.inc b/api-ref/source/job-binary-internals.inc index f97b1ac1..2c3dc5ec 100644 --- a/api-ref/source/job-binary-internals.inc +++ b/api-ref/source/job-binary-internals.inc @@ -22,7 +22,7 @@ database. Specify the file contents (raw data or script text) in the request body. Specify the file name in the URI. -Error response codes:202, +Normal response codes:202 Request @@ -77,7 +77,6 @@ Example response: Normal response codes: 200 -Error response codes: Request @@ -116,7 +115,6 @@ Shows details for a job binary internal. Normal response codes: 200 -Error response codes: Request @@ -160,7 +158,7 @@ Delete job binary internal Deletes a job binary internal. -Error response codes:204, +Normal response codes:204 Request @@ -183,7 +181,7 @@ Update job binary internal Updates a job binary internal. -Error response codes:202, +Normal respose codes:202 Request @@ -215,7 +213,6 @@ Lists the available job binary internals. Normal response codes: 200 -Error response codes: Request diff --git a/api-ref/source/job-executions.inc b/api-ref/source/job-executions.inc index 17ee3c61..8df12349 100644 --- a/api-ref/source/job-executions.inc +++ b/api-ref/source/job-executions.inc @@ -18,7 +18,6 @@ Refreshes the status of and shows information for a job execution. Normal response codes: 200 -Error response codes: Request @@ -76,7 +75,6 @@ Lists available job executions. Normal response codes: 200 -Error response codes: Request @@ -142,7 +140,6 @@ Shows details for a job execution, by ID. Normal response codes: 200 -Error response codes: Request @@ -198,7 +195,7 @@ Delete job execution Deletes a job execution. -Error response codes:204, +Normal response codes:204 Request @@ -221,7 +218,7 @@ Update job execution Updates a job execution. -Error response codes:202, +Normal response codes:202 Request @@ -279,7 +276,6 @@ Cancels a job execution. Normal response codes: 200 -Error response codes: Request diff --git a/api-ref/source/jobs.inc b/api-ref/source/jobs.inc index 467e73c3..8e9054d6 100644 --- a/api-ref/source/jobs.inc +++ b/api-ref/source/jobs.inc @@ -17,7 +17,7 @@ Run job Runs a job. -Error response codes:202, +Normal response codes:202 Request @@ -49,7 +49,6 @@ Lists all jobs. Normal response codes: 200 -Error response codes: Request @@ -104,7 +103,7 @@ Create job Creates a job object. -Error response codes:202, +Normal response codes:202 Request @@ -154,7 +153,6 @@ Shows details for a job. Normal response codes: 200 -Error response codes: Request @@ -202,7 +200,7 @@ Remove job Removes a job. -Error response codes:204, +Normal response codes:204 Request @@ -225,7 +223,7 @@ Update job object Updates a job object. -Error response codes:202, +Normal response codes:202 Request diff --git a/api-ref/source/node-group-templates.inc b/api-ref/source/node-group-templates.inc index 4d8373fc..5d382eb9 100644 --- a/api-ref/source/node-group-templates.inc +++ b/api-ref/source/node-group-templates.inc @@ -22,7 +22,6 @@ Lists available node group templates. Normal response codes: 200 -Error response codes: Request @@ -93,7 +92,7 @@ Create node group template Creates a node group template. -Error response codes:202, +Normal response codes: 202 Request @@ -159,7 +158,6 @@ Shows a node group template, by ID. Normal response codes: 200 -Error response codes: Request @@ -224,7 +222,7 @@ Delete node group template Deletes a node group template. -Error response codes:204, +Normal response codes:204 Request @@ -247,7 +245,7 @@ Update node group template Updates a node group template. -Error response codes:202, +Normal respose codes:202 Request