Closed deepakml closed 7 years ago
The following code did the trick, the issue was, i was not passing comment_type
let body = [
"entity_type": [
[
"value": "node"
]
],
"entity_id": [
[
"target_id": self.nodeID
]
],
"field_name": [
[
"value": "comment_x", // Machine name of the field on the node
"format": "no_html"
]
],
"comment_body": [
[
"value": "How are you?"
]
],
"comment_type": [
[
"target_id": "comment_x" // Machine name of the comment bundle
]
],
"uid": [
[
"target_id": self.UID
]
],
]
Hi,
I am using waterwheel-swift to connect my app with Drupal 8, it works really well. The only issue i am having is when creating comments. I get 400 status error.
I am using the following code
and my comments rest config is
Please let me know if there is something wrong with my code.
Thank you Deepak