diff --git a/APIs/ConfigurationAPI.raml b/APIs/ConfigurationAPI.raml index f05333d..b1969e3 100644 --- a/APIs/ConfigurationAPI.raml +++ b/APIs/ConfigurationAPI.raml @@ -27,7 +27,7 @@ documentation: /rolePaths: displayName: 'Role Paths' get: - description: 'Returns the Role Paths of the Device Model' + description: 'Returns the Role Paths of the Device Model. Each rolePath MUST be created by appending NcObject roles starting with the root block and using "." as the delimiter' responses: 200: body: @@ -63,7 +63,7 @@ documentation: /properties: displayName: 'Properties' get: - description: 'Get Properties of the object' + description: 'Get Properties of the object. This response MUST include all object properties including all the inherited properties' responses: 200: body: @@ -112,7 +112,7 @@ documentation: /descriptor: displayName: 'Datatype Descriptor of property' get: - description: 'Get MS-05 Datatype Descriptor of property' + description: 'Get MS-05 Datatype Descriptor of property. This descriptor MUST include all inherited elements' responses: 200: body: @@ -125,7 +125,7 @@ documentation: /methods: displayName: 'Methods' get: - description: 'Get Methods of this object.' + description: 'Get Methods of this object. This response MUST include all object methods including all the inherited methods' responses: 200: body: @@ -158,7 +158,7 @@ documentation: /descriptor: displayName: 'Class Descriptor' get: - description: 'Get MS-05 Class Descriptor of this object.' + description: 'Get MS-05 Class Descriptor of this object. This descriptor MUST include all inherited elements' responses: 200: body: diff --git a/APIs/schemas/method-patch-request.json b/APIs/schemas/method-patch-request.json index cfc86e6..42e2535 100644 --- a/APIs/schemas/method-patch-request.json +++ b/APIs/schemas/method-patch-request.json @@ -4,32 +4,12 @@ "description": "PATCH request body for invoking a method", "title": "Invoke method body", "required": [ - "methodId" + "arguments" ], "properties": { - "methodId": { - "type": "object", - "description": "ID structure for the target method", - "required": [ - "level", - "index" - ], - "properties": { - "level": { - "type": "integer", - "description": "Level component of the method ID", - "minimum": 1 - }, - "index": { - "type": "integer", - "description": "Index component of the method ID", - "minimum": 1 - } - } - }, "arguments": { "type": "object", - "description": "Method arguments. Arguments are specified as nested properties inside this object and their types are dictated by the specific MS-05-02 model for the method targeted. Arguments only need to be included for methods which have arguments and MUST be omitted if the method does not require any arguments." + "description": "Method arguments. Arguments are specified as nested properties inside this object and their types are dictated by the specific MS-05-02 model for the method targeted. For methods which do not have arguments defined the object MUST be an empty object." } } } diff --git a/docs/API requests.md b/docs/API requests.md index 0208ed6..bc2963e 100644 --- a/docs/API requests.md +++ b/docs/API requests.md @@ -1,44 +1,42 @@ # API requests -All request results MUST return a response which inherits from the base [NcMethodResult](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresult) that contains a status of type [NcMethodStatus](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodstatus). If the method call encountered an error then the response result returned MUST inherit from [NcMethodResultError](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresulterror) and include an errorMessage of type [NcString](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#primitives). +The endpoints are documented in the [Configuration API](https://specs.amwa.tv/is-14/branches/v1.0-dev/APIs/ConfigurationAPI.html). ## Control session -Concurrency control is left to specific device implementations, however devices MUST always return relevant error response messages and statuses when there are conflicts, errors or other noteworthy states (see [Error response messages](#error-response-messages)). +Concurrency control is left to specific device implementations, however devices MUST always return relevant error response messages and statuses when there are conflicts, errors or other noteworthy states. -## URL and query parameters usage +## URL and usage The URL provided in the [IS-04 device](IS-04%20interactions.md) is used as the base URL for all subsequent requests. -The device model of the device can be navigated by appending [NcObject roles](https://specs.amwa.tv/ms-05-02/latest/docs/NcObject.html) on top of the base URL starting from the `root block` and using `/` as the delimiter. +As described in the Configuration API, the [rolePaths](https://specs.amwa.tv/is-14/branches/v1.0-dev/APIs/ConfigurationAPI.html#rolepaths_get) endpoint returns all the role paths available for the device. Each `rolePath` MUST be created by appending [NcObject roles](https://specs.amwa.tv/ms-05-02/latest/docs/NcObject.html) starting with the `root block` and using `.` as the delimiter. Consequently the `.` character MUST not be used inside individual object roles. -It is RECOMMENDED for Device model objects roles to use `Unreserved Characters` as described in [RFC 3986 - 2.3. Unreserved Characters](https://www.ietf.org/rfc/rfc3986.txt). When `Reserved Characters` are used in an object role, they MUST be URL encoded when included in a URL. +It is RECOMMENDED for Device model objects roles to use `Unreserved Characters` as described in [RFC 3986 - 2.3. Unreserved Characters](https://www.ietf.org/rfc/rfc3986.txt). When `Reserved Characters` are used in an object role, they MUST be URL encoded when included in the `rolePaths` endpoint and subsequently in a URL. -Device model object roles are case sensitive and thus any URLs which include them are also case sensitive as described in [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-2.7.3). +Device model object roles are case sensitive and thus any `rolePaths` and URLs which include them are also case sensitive as described in [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-2.7.3). -This means for a given base URL the `root` block can be targeted by using `{baseUrl}/root` as the URL. +Property identifiers are defined as `{propertyLevel}p{propertyIndex}` where: -Query parameters MUST be used to target properties or methods for a particular object located by URL. +- propertyLevel - number representing the inheritance level of the class containing the property (see [Control Classes](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#control-classes)) +- propertyIndex - number representing the index level of the property within the specified inheritance level (see [Control Classes](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#control-classes)) -This means using the base URL the [userLabel](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncobject) of the `root` block can be targeted by using `{baseUrl}/root?level=1&index=6` as the URL. +Method identifiers are fined as `{methodLevel}m{methodIndex}` where: -All HTTP requests map to invoking methods on the resources located by the URL. +- methodLevel - number representing the inheritance level of the class containing the method (see [Control Classes](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#control-classes)) +- methodIndex - number representing the index level of the method within the specified inheritance level (see [Control Classes](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#control-classes)) -The following subsections define use cases for the applicable HTTP verbs where resources are located using a URL format where the following are defined: +This means for a given base URL the `root` block can be targeted by using `{baseUrl}/root` as the URL. Furthermore, the [userLabel](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncobject) of the `root` block can be targeted by using `{baseUrl}/rolePaths/root/properties/1p6/value` as the URL. -- baseUrl - href advertised in the controls of the [IS-04 device](IS-04%20interactions.md) -- rolePath - string obtained by appending [NcObject roles](https://specs.amwa.tv/ms-05-02/latest/docs/NcObject.html) on top of the base URL starting from the `root block` and using `/` as the delimiter -- propertyLevel - number representing the inheritance level of the class containing the property (see [Control Classes](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#control-classes)) -- propertyIndex - number representing the index level of the property within the specified inheritance level (see [Control Classes](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#control-classes)) +The following subsections define common use cases for the applicable HTTP verbs where resources are located using their associated `rolePath`. -| Verb | Scenario | URL format | Condition | Body | Response | -| ----- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| GET | [Get a property](#getting-a-property) | {baseUrl}/{rolePath}?level={propertyLevel}&index={propertyIndex} | The URL and query parameters target a specific object and property | N/A | [NcMethodResultPropertyValue](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresultpropertyvalue) with the contents of the property | -| GET | [Get block members](#getting-the-members-of-a-block) | {baseUrl}/{rolePath} | The URL targets a specific block | N/A | [NcMethodResultPropertyValue](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresultpropertyvalue) with the contents of the `members` property | -| GET | [Get class descriptor](#getting-the-class-descriptor-of-an-object) | {baseUrl}/{rolePath}?describe=true | The URL targets a specific object | N/A | [NcMethodResultClassDescriptor](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresultclassdescriptor) | -| GET | [Get datatype descriptor](#getting-the-datatype-descriptor-of-a-property) | {baseUrl}/{rolePath}?level={propertyLevel}&index={propertyIndex}&describe=true | The URL and query parameters target a specific object and property | N/A | [NcMethodResultDatatypeDescriptor](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresultdatatypedescriptor) | -| PUT | [Modify a property](#put) | {baseUrl}/{rolePath}?level={propertyLevel}&index={propertyIndex} | The URL and query parameters target a specific object and property | [modify-property schema](https://specs.amwa.tv/is-device-configuration/branches/publish-CR/APIs/schemas/modify-property.html) | [NcMethodResult](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresult) | -| PATCH | [Invoke a method](#patch) | {baseUrl}/{rolePath} | The URL targets a specific object | [invoke-method schema](https://specs.amwa.tv/is-device-configuration/branches/publish-CR/APIs/schemas/invoke-method.html) | [NcMethodResult](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresult) | +| Verb | Scenario | URL format | Body | Response | +| ----- | ------------------------------------------------------------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | +| GET | [Get a property](#getting-a-property) | baseUrl/rolePaths/{rolePath}/properties/{propertyId}/value | N/A | [NcMethodResultPropertyValue](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresultpropertyvalue) with the contents of the property | +| GET | [Get class descriptor](#getting-the-class-descriptor-of-an-object) | baseUrl/rolePaths/{rolePath}/descriptor | N/A | [NcMethodResultClassDescriptor](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresultclassdescriptor) | +| GET | [Get datatype descriptor](#getting-the-datatype-descriptor-of-a-property) | baseUrl/rolePaths/{rolePath}/properties/{propertyId}/descriptor | N/A | [NcMethodResultDatatypeDescriptor](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresultdatatypedescriptor) | +| PUT | [Modify a property](#put) | baseUrl/rolePaths/{rolePath}/properties/{propertyId}/value | [property-value-put-request](https://specs.amwa.tv/is-14/branches/v1.0-dev/APIs/schemas/property-value-put-request.json) | [NcMethodResult](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresult) | +| PATCH | [Invoke a method](#patch) | baseUrl/rolePaths/{rolePath}/methods/{methodId} | [method-patch-request](https://specs.amwa.tv/is-14/branches/v1.0-dev/APIs/schemas/method-patch-request.json) | [NcMethodResult](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresult) | ## GET @@ -48,75 +46,30 @@ The following subsections define use cases for the applicable HTTP verbs where r |:--:| | _**Getting a property**_ | -The URL MUST target a specific property of an object by locating the object using its role path and adding `level` and `index` query parameters. The response MUST be of type [NcMethodResultPropertyValue](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresultpropertyvalue) with the contents of that property. +The URL MUST target a specific property of an object by locating the object using its role path and the property using its propertyId. The response MUST be of type [NcMethodResultPropertyValue](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresultpropertyvalue) with the contents of that property. If the request encountered an error then the response result returned MUST inherit from [NcMethodResultError](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresulterror) and include an errorMessage of type [NcString](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#primitives). This is equivalent to invoking the generic [Get method](https://specs.amwa.tv/ms-05-02/latest/docs/NcObject.html#generic-getter-and-setter) on the specific object for the required property. -The following table explains the HTTP status and NcMethodStatus codes and the relevant scenarios. - -| Scenario | HTTP status code | NcMethodStatus code | -| ---------------------------------------------------------------------------------------------------------------- | ---------------- | ------------------- | -| Request is successful | 200 | 200 | -| Object cannot be found using the offered baseUrl and rolePath | 404 | 404 | -| Object is located successfully via rolePath but the desired property located via query parameters does not exist | 404 | 502 | -| The property and object are located successfully but the value cannot be retrieved for any reason | 500 | 500 | - -### Getting the members of a block - -| ![Getting block members](images/getting-block-members.png) | -|:--:| -| _**Getting block members**_ | - -The URL MUST target a specific block object in the device model and MUST NOT contain any query parameters. Devices MUST treat this as a request to retrieve the [members](https://specs.amwa.tv/ms-05-02/latest/docs/Blocks.html#device-model-discovery) property of that block. The response MUST be of type [NcMethodResultPropertyValue](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresultpropertyvalue) with the contents of the `members` property. The response MUST be the same to the one received when appending the `level` and `index` query parameters and targeting the `members` property as described in [Getting a property](#getting-a-property). - -This is equivalent to invoking the generic [Get method](https://specs.amwa.tv/ms-05-02/latest/docs/NcObject.html#generic-getter-and-setter) on the specific object for the `members` property. - -The following table explains the HTTP status and NcMethodStatus codes and the relevant scenarios. - -| Scenario | HTTP status code | NcMethodStatus code | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | ------------------- | -| Request is successful | 200 | 200 | -| Object cannot be found using the offered baseUrl and rolePath | 404 | 404 | -| Object is located successfully via rolePath but the desired property located via query parameters does not exist for example because the object is not a block | 404 | 502 | -| The property and object are located successfully but the value cannot be retrieved for any reason | 500 | 500 | - ### Getting the class descriptor of an object | ![Getting class descriptor](images/getting-class-descriptor.png) | |:--:| | _**Getting class descriptor**_ | -The URL MUST target a specific object in the device model and include the `describe=true` query parameter. Devices treat this as a request to retrieve the [class descriptor](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncclassdescriptor) of that object's class and MUST return a response of type [NcMethodResultClassDescriptor](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresultclassdescriptor) with a descriptor which includes all inherited elements. +The URL MUST target a specific object in the device model. Devices treat this as a request to retrieve the [class descriptor](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncclassdescriptor) of that object's class and MUST return a response of type [NcMethodResultClassDescriptor](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresultclassdescriptor) with a descriptor which includes all inherited elements. If the request encountered an error then the response result returned MUST inherit from [NcMethodResultError](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresulterror) and include an errorMessage of type [NcString](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#primitives). This is equivalent to invoking the [GetControlClass method](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncclassmanager) on the [Class Manager object](https://specs.amwa.tv/ms-05-02/latest/docs/Managers.html#class-manager) and including all inherited elements. -The following table explains the HTTP status and NcMethodStatus codes and the relevant scenarios. - -| Scenario | HTTP status code | NcMethodStatus code | -| ------------------------------------------------------------------------------------- | ---------------- | ------------------- | -| Request is successful | 200 | 200 | -| Object cannot be found using the offered baseUrl and rolePath | 404 | 404 | -| Object is located successfully via rolePath but class descriptor cannot be retrieved | 500 | 500 | - ### Getting the datatype descriptor of a property | ![Getting datatype descriptor](images/getting-datatype-descriptor.png) | |:--:| | _**Getting datatype descriptor**_ | -The URL MUST target a specific property of an object by locating the object using its role path and adding `level`, `index` and `describe=true` query parameters. Devices treat this as a request to retrieve the [datatype descriptor](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncdatatypedescriptor) of that property and MUST return a response of type [NcMethodResultDatatypeDescriptor](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresultdatatypedescriptor) with a descriptor which includes all inherited elements. +The URL MUST target a specific property of an object by locating the object using its role path and the property using its propertyId. Devices treat this as a request to retrieve the [datatype descriptor](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncdatatypedescriptor) of that property and MUST return a response of type [NcMethodResultDatatypeDescriptor](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresultdatatypedescriptor) with a descriptor which includes all inherited elements. If the request encountered an error then the response result returned MUST inherit from [NcMethodResultError](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresulterror) and include an errorMessage of type [NcString](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#primitives). This is equivalent to invoking the [GetDatatype method](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncclassmanager) on the [Class Manager object](https://specs.amwa.tv/ms-05-02/latest/docs/Managers.html#class-manager) and including all inherited elements. -The following table explains the HTTP status and NcMethodStatus codes and the relevant scenarios. - -| Scenario | HTTP status code | NcMethodStatus code | -| ---------------------------------------------------------------------------------------------------------------- | ---------------- | ------------------- | -| Request is successful | 200 | 200 | -| Object cannot be found using the offered baseUrl and rolePath | 404 | 404 | -| Object is located successfully via rolePath but the desired property located via query parameters does not exist | 404 | 502 | -| The property and object are located successfully but datatype descriptor cannot be retrieved for any reason | 500 | 500 | - ## PUT | ![Putting a property](images/putting-a-property.png) | @@ -125,27 +78,14 @@ The following table explains the HTTP status and NcMethodStatus codes and the re The PUT verb MUST only be used for setting individual object properties. -The URL MUST target a specific property of an object by locating the object using its role path and adding `level` and `index` query parameters. The response MUST be of type [NcMethodResult](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresult). +The URL MUST target a specific property of an object by locating the object using its role path and the property using its propertyId. The response MUST be of type [NcMethodResult](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresult). If the request encountered an error then the response result returned MUST inherit from [NcMethodResultError](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresulterror) and include an errorMessage of type [NcString](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#primitives). -The body of the request MUST include an object which includes the new value of the property as per the [modify-property](https://specs.amwa.tv/is-device-configuration/branches/publish-CR/APIs/schemas/modify-property.html) schema. +The body of the request MUST include an object which includes the new value of the property as per the [property-value-put-request](https://specs.amwa.tv/is-14/branches/v1.0-dev/APIs/schemas/property-value-put-request.json) schema. This is equivalent to invoking the generic [Set method](https://specs.amwa.tv/ms-05-02/latest/docs/NcObject.html#generic-getter-and-setter) on the specific object for the required property. -The following table explains the HTTP status and NcMethodStatus codes and the relevant scenarios. - -| Scenario | HTTP status code | NcMethodStatus code | -| ---------------------------------------------------------------------------------------------------------------- | ---------------- | ------------------- | -| Request is successful | 200 | 200 | -| Object cannot be found using the offered baseUrl and rolePath | 404 | 404 | -| Object is located successfully via rolePath but the desired property located via query parameters does not exist | 404 | 502 | -| The property and object are located successfully but the value cannot be set because it is readonly | 500 | 405 | -| The property and object are located successfully but the value cannot be set because it is not valid | 500 | 417 | -| The property and object are located successfully but the value cannot be set for any other reason | 500 | 500 | - `TODO`: Figure out how we map deprecation statuses for properties and methods. -`TBD`: Do we say for any other error status codes just use 500 as the HTTP status code? - ## PATCH | ![Invoking a method](images/invoking-a-method.png) | @@ -155,40 +95,20 @@ The following table explains the HTTP status and NcMethodStatus codes and the re The PATCH verb MUST only be used for invoking object methods. The URL MUST target a specific object by locating the object using its role path. -The body of the request MUST include an object which includes a [methodId](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodid) with `level` and `index` followed by any arguments required by the method. +The body of the request MUST include an object which includes an `arguments` object. For methods which do not have arguments defined the request body MUST include an empty `arguments` object. ```json { - "methodId": { - "level": ..., - "index": ... - }, "arguments": { ... } } ``` -For a full schema of the required body object see the [invoke-method](https://specs.amwa.tv/is-device-configuration/branches/publish-CR/APIs/schemas/invoke-method.html) schema. +For a full schema of the required body object see the [method-patch-request](https://specs.amwa.tv/is-14/branches/v1.0-dev/APIs/schemas/method-patch-request.json) schema. -The response MUST be of type [NcMethodResult](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresult) or a derived type. +The response MUST be of type [NcMethodResult](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresult) or a derived type. If the request encountered an error then the response result returned MUST inherit from [NcMethodResultError](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresulterror) and include an errorMessage of type [NcString](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#primitives). This is equivalent to invoking the specified method. -The following table explains the HTTP status and NcMethodStatus codes and the relevant scenarios. - -| Scenario | HTTP status code | NcMethodStatus code | -| ------------------------------------------------------------------------------------------------------------------- | ---------------- | ------------------- | -| Request is successful | 200 | 200 | -| Object cannot be found using the offered baseUrl and rolePath | 404 | 404 | -| Object is located successfully via rolePath but the desired method does not exist | 404 | 501 | -| The method and object are located successfully but the method cannot be invoked because the arguments are not valid | 500 | 417 | -| The method and object are located successfully but the method cannot be invoked because of any other reason | 500 | 500 | - `TODO`: Figure out how we map deprecation statuses for properties and methods. - -## Error response messages - -When any request encounters an error, the response MUST be [NcMethodResultError](https://specs.amwa.tv/ms-05-02/latest/docs/Framework.html#ncmethodresulterror) or a derived datatype. - -`TODO`: Capture possible HTTP status codes and NcMethodStatus values for general error responses. diff --git a/docs/Transport and message encoding.md b/docs/Transport and message encoding.md index 16c3c20..64f7f98 100644 --- a/docs/Transport and message encoding.md +++ b/docs/Transport and message encoding.md @@ -1,5 +1,5 @@ # Transport and message encoding -Implementations MUST use `HTTP` as the communication transport. +Implementations MUST use `HTTP` or `HTTPS` as the communication transport. Implementations MUST use `JSON` as the message encoding data format. diff --git a/docs/images/getting-a-property.png b/docs/images/getting-a-property.png index e9f6053..78aa331 100644 Binary files a/docs/images/getting-a-property.png and b/docs/images/getting-a-property.png differ diff --git a/docs/images/getting-block-members.png b/docs/images/getting-block-members.png deleted file mode 100644 index ea9b054..0000000 Binary files a/docs/images/getting-block-members.png and /dev/null differ diff --git a/docs/images/getting-class-descriptor.png b/docs/images/getting-class-descriptor.png index 508c323..a237c33 100644 Binary files a/docs/images/getting-class-descriptor.png and b/docs/images/getting-class-descriptor.png differ diff --git a/docs/images/getting-datatype-descriptor.png b/docs/images/getting-datatype-descriptor.png index e076095..dc60329 100644 Binary files a/docs/images/getting-datatype-descriptor.png and b/docs/images/getting-datatype-descriptor.png differ diff --git a/docs/images/invoking-a-method.png b/docs/images/invoking-a-method.png index 882ee69..672ab53 100644 Binary files a/docs/images/invoking-a-method.png and b/docs/images/invoking-a-method.png differ diff --git a/docs/images/putting-a-property.png b/docs/images/putting-a-property.png index bc920ec..f65f583 100644 Binary files a/docs/images/putting-a-property.png and b/docs/images/putting-a-property.png differ