##Drupal 8 REST End Points and Examples
- Content-Type = application/hal+json
- X-CSRF-Token = http://d8.dev/rest/session/token
- Authorization = Basic Auth
- Accept = application/hal+json
####POST to Forums
{
"_links": {
"type": {
"href": "http://d8.dev/rest/type/node/forum?_format=hal_json"
}
},
"type":[{"target_id":"forum"}],
"title": [{
"value": "Track days are why saturdays exist."
}],
"taxonomy_forums": [{
"target_id": "19"
}],
"body":[{
"value": "<p>Vestibulum id ligula porta felis euismod semper. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Etiam porta sem malesuada magna mollis euismod.</p>"
}]
}
{
"_links":{
"type":{
"href":"http://d8.dev/rest/type/comment/comment"
},
"http://d8.dev/rest/relation/comment/comment/entity_id":[
{
"href":"http://d8.dev/node/76?_format=hal_json"
}
],
"http://d8.dev/rest/relation/comment/comment/uid":[
{
"href":"http://d8.dev/users/11?_format=hal_json",
"lang":"en"
}
]
},
"uid":[{"target_id":11}],
"entity_id":[{"target_id":"76"}],
"entity_type":[{"value":"node"}],
"comment_type":[{"target_id":"comment"}],
"subject":[{"value":"This is a comment"}],
"field_name": [
{
"value": "comment_forum"
}
],
"comment_body":[
{"value":"<p>Fill me up with you comments!</p>","format":"basic_html"}
]
}