Skip to content

Commit

Permalink
Add CORS pre-flight OPTIONS endpoint specification (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-r-thorpe authored Jun 11, 2024
1 parent 3c22ee6 commit c35423a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions APIs/ConfigurationAPI.raml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ documentation:
type: !include schemas/bulkProperties-get-response.json
example: !include ../examples/bulkProperties-get-200.json
options:
description: A pre-flight check generally used for Cross-Origin Resource Sharing (CORS) purposes
responses:
200:
403:
patch:
description: 'Validate an NcBulkValuesHolder object against the Device Model'
body:
type: !include schemas/bulkProperties-validate-request.json
Expand Down Expand Up @@ -108,6 +113,11 @@ documentation:
methodId:
type: string
pattern: "^[0-9]+m[0-9]+"
options:
description: A pre-flight check generally used for Cross-Origin Resource Sharing (CORS) purposes
responses:
200:
403:
patch:
description: 'Invoke method.'
body:
Expand Down Expand Up @@ -181,6 +191,11 @@ documentation:
description: 'Returned when the Property was unable to be retrieved. Corresponds to NcMethodStatus code 500.'
body:
type: !include schemas/ms05-error.json
options:
description: A pre-flight check generally used for Cross-Origin Resource Sharing (CORS) purposes
responses:
200:
403:
put:
descriptions: 'Put value of a Property'
body:
Expand Down

0 comments on commit c35423a

Please sign in to comment.