By kalinchernev on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.2.x
Introduced in version:
8.2.0
Issue links:
Description:
Previously, it was impossible to update comment entities using the standard PATCH method over core REST http.
Now, developers can use both JSON normalization/serialization and HAL+JSON to update a comment resource.
Example request:
Method: PATCH
URI: /comment/1
Header: Content-Type: application/json
Payload:
{
"langcode":[{"value":"en"}],
"subject":[{"value":"New Subject"}],
"uid":[{"target_id":"1","url":"/discasaurus.com/user/1"}],
"status":[{"value":"1"}],
"comment_type":[{"target_id":"comment"}],
"default_langcode":[{"value":"1"}],
"comment_body":[{"value":"<p>New body...</p>","format":"basic_html"}]
}
The change was simultaneously introduced in 8.2.x and 8.1.x
Impacts:
Module developers