I am using Node core packages. Not contentful-management module. I am using a lambda and cannot use any other node modules.
My current method involves many API endpoints:
- Upload image with node buffer using application/octet-stream
- Convert uploaded image to asset
- Process Asset (with a version number, will this ever change?)
- Publish Asset (with a version number that I believe changes)
- Post entry using AssetId
That is 5 api calls! Is this necessary?
Can I just straight upload a entry json with an image binary?
Also, it seemed that the version changes. How am I suppsed to know what version number? Make another API call?