Skip to content

Commit

Permalink
...Added 404 and 400 HTTP error codes where missing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-r-thorpe committed May 8, 2024
1 parent 0fbbd45 commit 74e1efb
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion APIs/ConfigurationAPI.raml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 74e1efb

Please sign in to comment.