From 215aeaeaedf9f02266ef3218f6a5129a28c7a88e Mon Sep 17 00:00:00 2001 From: Flavio Percoco Date: Tue, 15 Oct 2013 16:07:44 +0200 Subject: [PATCH] Add list of required fields to the API definition Some operations had the list of required fields missing. This patch adds it where needed. Partially-Implements blueprint python-marconiclient-v1 Change-Id: Ic7b1b39757ee13fd3323a76ff6a13e99293d12ff --- marconiclient/queues/v1/api.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/marconiclient/queues/v1/api.py b/marconiclient/queues/v1/api.py index 84345981..53d5d185 100644 --- a/marconiclient/queues/v1/api.py +++ b/marconiclient/queues/v1/api.py @@ -41,6 +41,7 @@ class V1(api.Api): 'queue_exists': { 'ref': 'queues/{queue_name}', 'method': 'HEAD', + 'required': ['queue_name'], 'properties': { 'queue_name': {'type': 'string'} } @@ -49,6 +50,7 @@ class V1(api.Api): 'queue_delete': { 'ref': 'queues/{queue_name}', 'method': 'DELETE', + 'required': ['queue_name'], 'properties': { 'queue_name': {'type': 'string'} } @@ -57,6 +59,7 @@ class V1(api.Api): 'queue_set_metadata': { 'ref': 'queues/{queue_name}/metadata', 'method': 'PUT', + 'required': ['queue_name'], 'properties': { # NOTE(flaper87): Metadata is part # of the request content. No need to @@ -68,6 +71,7 @@ class V1(api.Api): 'queue_get_metadata': { 'ref': 'queues/{queue_name}/metadata', 'method': 'GET', + 'required': ['queue_name'], 'properties': { 'queue_name': {'type': 'string'} } @@ -76,6 +80,7 @@ class V1(api.Api): 'queue_get_stats': { 'ref': 'queues/{queue_name}/stats', 'method': 'GET', + 'required': ['queue_name'], 'properties': { 'queue_name': {'type': 'string'} }