Sending/Receving file attachment as part of REST to 3rd party
A 3rd part software provides a REST API to add attachments.
It was easy to test this using Postman and add attachments to the 3rd party software.
Here is the code generated by Postman:
POST /rest/api/latest/issue/TJI-8/attachments/ HTTP/1.1
Host: 128.59.93.235:8080
Authorization: Basic xxxx
X-Atlassian-Token: no-check
Cache-Control: no-cache
Postman-Token: 7fad0427-321e-d6ee-cdf0-ad5d5c2cdd17
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="Rest API.txt"
Content-Type: text/plain
------WebKitFormBoundary7MA4YWxkTrZu0gW--
However, I haven't figured out how to send attachments from PeopleSoft to the 3rd party software after creating this REST API.