Neuron ESB User Network

The Service Bus for the Connected Business

Hi,
I need to submit a REST request to JIRA, creating an attachment.
This is an example of a successfull call, attaching a txt file, submitted thorugh Postman

POST http://jiratest.kamstrup.dk/rest/api/2/issue/oms-2149/attachments HTTP/1.1
X-Atlassian-Token: no-check
Content-Type: multipart/form-data; boundary=--------------------------236638228057324148168041
cache-control: no-cache
Postman-Token: 57474a56-9350-47db-b840-b6811b74139c
Authorization: Basic bmV1cm9uLXRlc3Q6S2Ftc3RydXAyMDE5
User-Agent: PostmanRuntime/7.6.0
Accept: */*
Host: jiratest.kamstrup.dk
cookie: JSESSIONID=D13E363BCE1C13A72F03228E87C7CE3E; atlassian.xsrf.token=BFA9-9KJP-X2G3-LK1H_d22a0d2bf4dba9a4546f546b9fcb2acd790e7dd8_lin
accept-encoding: gzip, deflate
content-length: 210
Connection: keep-alive

----------------------------236638228057324148168041
Content-Disposition: form-data; name="file"; filename="test.txt"
Content-Type: text/plain

test
----------------------------236638228057324148168041--


I've tried reproducing the same through the Http Client utility (using Form Body as Body option), but it doesn't seem to support additional body headers (Content-Type), as well as additional form parameters (filename="")

POST http://jiratest.kamstrup.dk/rest/api/2/issue/oms-2149/attachments HTTP/1.1
X-Atlassian-Token: no-check
Content-Type: multipart/form-data; boundary=----------bec4bc1b5e48429bafd3aa48a31fc7c4
Authorization: Basic bmV1cm9uLXRlc3Q6S2Ftc3RydXAyMDE5
Host: jiratest.kamstrup.dk
Content-Length: 277
Expect: 100-continue
Accept-Encoding: gzip, deflate

------------bec4bc1b5e48429bafd3aa48a31fc7c4
Content-Disposition: form-data; name="file"

This is a test.

------------bec4bc1b5e48429bafd3aa48a31fc7c4--



What do the key/value pair represent in the client utility? How should it be configured?
Alternatively, can I create a REST request manually, any suggestion for this?

Thanks

Fabrizio

Views: 116

Reply to This

Neuron ESB Product Support Forums and Communities

Latest Activity

Prasanth Kharade is now a member of Neuron ESB User Network
Dec 30, 2019
Suman vadde is now a member of Neuron ESB User Network
Dec 16, 2019
Morten Andreasen is now a member of Neuron ESB User Network
Dec 9, 2019
Profile IconCarl Porch, Cordier, Lahbib Marouan and 4 more joined Neuron ESB User Network
Nov 18, 2019
Miroslav Jelev posted a discussion

Using unsupported OAuth provider

Is it possible to create a custom OAuth provider?  Specifically, we are working with Cisco (https://cloudsso.cisco.com/as/token.oauth2).We have a requirement to integrate with a Cisco soap server which uses OAuth2 for authentication. We are using a Service Connector to send a message to the SOAP service, but we need to write custom code in a business process to authenticate with their Cisco OAuth provider. We saw that Neuron supports…See More
Jul 29, 2019
Profile Iconchris comer, Fahd EL YOUBI, Vishal Misal and 2 more joined Neuron ESB User Network
May 16, 2019
Alixx Skevington posted a discussion

Docker Windows 2019 - Neuron 3.5

Hi, We are using 3.5 for our application and I am trying to containerise it for our integration tests.  Building and deploying VM's as this is very time consuming to build and deploy.So I have decided that I to go down docker; everything in our stack has migrated nicely except Neuron.  The first issue was that I needed a later version of the 2016 image or 2019 image from MS which I have. I have managed to install MSMQ on it as well. But when I try to run a silent install everything runs.  But…See More
Apr 15, 2019

Badge

Loading…

© 2020   Created by Neuron Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service