From 74e1efb492d2d8842736b2ac6f6fb9210705f493 Mon Sep 17 00:00:00 2001 From: "Jonathan Thorpe (Sony)" Date: Wed, 8 May 2024 15:14:45 +0100 Subject: [PATCH] ...Added 404 and 400 HTTP error codes where missing --- APIs/ConfigurationAPI.raml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/APIs/ConfigurationAPI.raml b/APIs/ConfigurationAPI.raml index 7ab7ade..d6f9a9c 100644 --- a/APIs/ConfigurationAPI.raml +++ b/APIs/ConfigurationAPI.raml @@ -65,7 +65,6 @@ documentation: description: 'Returned when the requested Role Path does not exist. Corresponds to NcMethodStatus code 404.' body: type: !include schemas/ms05-error.json - options: description: 'Validate an NcBulkValuesHolder object against the Device Model' body: @@ -76,6 +75,10 @@ documentation: body: type: !include schemas/bulkProperties-validate-response.json example: !include ../examples/bulkProperties-validate-200.json + 400: + description: 'Returned when the Bulk Properties arguments are invalid. Corresponds to NcMethodStatus code 417.' + body: + type: !include schemas/ms05-error.json 404: description: 'Returned when the requested Role Path does not exist. Corresponds to NcMethodStatus code 404.' body: @@ -90,6 +93,10 @@ documentation: body: type: !include schemas/bulkProperties-set-response.json example: !include ../examples/bulkProperties-set-200.json + 400: + description: 'Returned when the Bulk Properties arguments are invalid. Corresponds to NcMethodStatus code 417.' + body: + type: !include schemas/ms05-error.json 404: description: 'Returned when the requested Role Path does not exist. Corresponds to NcMethodStatus code 404.' body: @@ -120,6 +127,10 @@ documentation: body: example: !include ../examples/methods-base-get-200.json type: !include schemas/methods-base.json + 404: + description: 'Returned when the requested Role Path does not exist. Corresponds to NcMethodStatus code 404.' + body: + type: !include schemas/ms05-error.json /{methodId}: uriParameters: methodId: @@ -156,6 +167,10 @@ documentation: body: example: !include ../examples/properties-base-get-200.json type: !include schemas/properties-base.json + 404: + description: 'Returned when the requested Role Path does not exist. Corresponds to NcMethodStatus code 404.' + body: + type: !include schemas/ms05-error.json /{propertyId}: uriParameters: propertyId: