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
This commit is contained in:
@@ -41,6 +41,7 @@ class V1(api.Api):
|
|||||||
'queue_exists': {
|
'queue_exists': {
|
||||||
'ref': 'queues/{queue_name}',
|
'ref': 'queues/{queue_name}',
|
||||||
'method': 'HEAD',
|
'method': 'HEAD',
|
||||||
|
'required': ['queue_name'],
|
||||||
'properties': {
|
'properties': {
|
||||||
'queue_name': {'type': 'string'}
|
'queue_name': {'type': 'string'}
|
||||||
}
|
}
|
||||||
@@ -49,6 +50,7 @@ class V1(api.Api):
|
|||||||
'queue_delete': {
|
'queue_delete': {
|
||||||
'ref': 'queues/{queue_name}',
|
'ref': 'queues/{queue_name}',
|
||||||
'method': 'DELETE',
|
'method': 'DELETE',
|
||||||
|
'required': ['queue_name'],
|
||||||
'properties': {
|
'properties': {
|
||||||
'queue_name': {'type': 'string'}
|
'queue_name': {'type': 'string'}
|
||||||
}
|
}
|
||||||
@@ -57,6 +59,7 @@ class V1(api.Api):
|
|||||||
'queue_set_metadata': {
|
'queue_set_metadata': {
|
||||||
'ref': 'queues/{queue_name}/metadata',
|
'ref': 'queues/{queue_name}/metadata',
|
||||||
'method': 'PUT',
|
'method': 'PUT',
|
||||||
|
'required': ['queue_name'],
|
||||||
'properties': {
|
'properties': {
|
||||||
# NOTE(flaper87): Metadata is part
|
# NOTE(flaper87): Metadata is part
|
||||||
# of the request content. No need to
|
# of the request content. No need to
|
||||||
@@ -68,6 +71,7 @@ class V1(api.Api):
|
|||||||
'queue_get_metadata': {
|
'queue_get_metadata': {
|
||||||
'ref': 'queues/{queue_name}/metadata',
|
'ref': 'queues/{queue_name}/metadata',
|
||||||
'method': 'GET',
|
'method': 'GET',
|
||||||
|
'required': ['queue_name'],
|
||||||
'properties': {
|
'properties': {
|
||||||
'queue_name': {'type': 'string'}
|
'queue_name': {'type': 'string'}
|
||||||
}
|
}
|
||||||
@@ -76,6 +80,7 @@ class V1(api.Api):
|
|||||||
'queue_get_stats': {
|
'queue_get_stats': {
|
||||||
'ref': 'queues/{queue_name}/stats',
|
'ref': 'queues/{queue_name}/stats',
|
||||||
'method': 'GET',
|
'method': 'GET',
|
||||||
|
'required': ['queue_name'],
|
||||||
'properties': {
|
'properties': {
|
||||||
'queue_name': {'type': 'string'}
|
'queue_name': {'type': 'string'}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user