Drupal 8’s REST API reached a next level of maturity in 8.5. In 8.6, we matured it further, added features and closed some gaps.
Drupal 8.6 was released 1 with some significant API-First improvements!
The REST API made a big step forward with the 6th minor release of Drupal 8 — I hope you’ll like these improvements :)
Thanks to everyone who contributed!
File uploads! #1927648
No more crazy per-site custom REST resource plugins, complex work-arounds or base64-encoded hacks! Safe file uploads of any size are now natively supported!
POST /file/upload/node/article/field_hero_image?_format=json HTTP/1.1 Content-Type: application/octet-stream Content-Disposition: file; filename="filename.jpg"
[… binary file data …]
then, after receiving a response to the above request: