I am trying to create something like a gallery consumer. For that I want to write a admininterface, where you can upload pictures to cockpit. But I actually have no idea how. At this moment I am trying with postman.
How Do I upload a picture to the api? The collection has one field named picture, where the picture should be stored. Its type of “Picture”.
this is expected by the api. But how am I gonna put my image in that json object? I tried base64 encoding my picture, but where do I put that? Do I even have to encode it?
Do you have some ideas for me?
Edit: I tried using /api/cockpit/addAssets but I only get this response here: