REST API- picture attachment handling
Posted: 03 Feb 2020, 16:49
Hello everyone,
I am trying to create issues with the rest API (Mantis version 2.23.0/ Windows 10) and command lines through curl. It works rather well, but I would like to know the details of the attachments. I can easily add text files (see https://documenter.getpostman.com/view/ ... c11f7501f4), but I would like for my use case to be able to add pictures.
My question is: how to handle the "content" part for, say, a jpg? Or are there other arguments such as the file path?
I am trying to create issues with the rest API (Mantis version 2.23.0/ Windows 10) and command lines through curl. It works rather well, but I would like to know the details of the attachments. I can easily add text files (see https://documenter.getpostman.com/view/ ... c11f7501f4), but I would like for my use case to be able to add pictures.
My question is: how to handle the "content" part for, say, a jpg? Or are there other arguments such as the file path?