Ich kann Artikel über RESTohne Probleme erstellen . Aber ich kann nicht herausfinden, wie man Dateien einreicht.
Wie sende ich Dateien (Bilder) über an Drupal 8 REST?
Aktualisieren:
REST UI - File: /file/{id}
Example image added in article:
/admin/content/files -> /admin/content/files/usage/1
file {id} = 1?
Get file id 1:
curl --request GET --user admin:admin --header 'Accept: application/hal+json' http://d8.local/file/1
A fatal error occurred: No route found for "GET /file/1"
Bild posten (ohne Entitätsinhalt):
curl --request POST --user admin:admin --header 'Content-type: application/hal+json' http://d8.local/entity/file
{"error":"No entity content received."}
Ich kann nicht herausfinden, wie man das erstellt entity content.
