-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PartialUpdates reporting + additional improvements in error responses #4447
Conversation
@@ -77,7 +79,7 @@ echo '03. PATCH /v2/entities/Room1/attrs, to update existing attribute (temperat | |||
echo '====================================================================================================================================================================' | |||
payload='{ | |||
"temperature": { | |||
"value": 24, | |||
"value": 25, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually not needed, but better to use a different value than the one in step 02.
NTC (informative)
doc/manuals/orion-api.md
Outdated
@@ -2816,15 +2816,25 @@ _**Request headers**_ | |||
_**Response code**_ | |||
|
|||
* Successful operation uses 200 OK | |||
* Errors use a non-2xx and (optionally) an error payload. See subsection on [Error Responses](#error-responses) for more details. | |||
* Errors use a non-2xx code and error payload (see next subsection): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the link to the error responses section be included? (applies for each API operation)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The subsection is
_**Response payload**_
That as far as a I understand, is not link-able.
doc/manuals/orion-api.md
Outdated
* Errors use a non-2xx and (optionally) an error payload. See subsection on [Error Responses](#error-responses) for more details. | ||
* Errors use a non-2xx code and error payload: | ||
* 404 Not Found for not found entity (see next subsection) | ||
* Check addicional cases in [Error Responses](#error-responses) general documentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo:
* Check addicional cases in [Error Responses](#error-responses) general documentation | |
* Check additional cases in [Error Responses](#error-responses) general documentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed (in all places) in b46c269
LGTM |
@fisuda this PR does some modifications to English documentation. It would be great if you could sync the Japanese translation, please. Thanks in advance! |
I sent the PR #4466. Thanks. |
(JP) ADD doc about PartialUpdates reporting in error responses (#4447)
Issue #3499