[DOCU-536] Uploading binaries with REST Created: 10/Sep/14 Updated: 04/Feb/16 Resolved: 02/Feb/16 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | content |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Neutral |
| Reporter: | Antti Hietala | Assignee: | Ruth Stocks |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoR: |
Empty
|
| Date of First Response: | |
| Sprint: | Docu Sprint 6 |
| Description |
|
Add an example of uploading binaries using REST. There's a JSON example with binary payload in Forum thread: PUT/POST request of content, How to define a video object with JSON? |
| Comments |
| Comment by Ruth Stocks [ 27/Jan/16 ] |
|
I tested this by doing the following:
I also tried with pmundt files attached to |
| Comment by Ruth Stocks [ 02/Feb/16 ] |
|
With Phillips help I got this working and it's now documented at https://documentation.magnolia-cms.com/display/DOCS/REST+API#RESTAPI-Creatingassets
|
| Comment by Christoph Meier [ 04/Feb/16 ] |
|
The upload examples on the docs. page works fine for me with swagger and finally it works with cURL as well. I had to remove some empty lines (which lead to a fail) and removed not mandatory properties such as identifier to make it easier. Now it looks fine for me. |