It's all about the answers!

Ask a question

OSLC-RM REST API - Post/Upload .png files DOORS NG


Luis Silva (257) | asked May 30 '16, 6:58 a.m.

Hi all,

Is it possible to post/upload an image directly with the OSLC REST API?

I created an artifact type in DOORS NG which is "Image" of type "Text". I have several .png files locally. How can I use the REST API and use the actual image path, like (c:/folderx/img1.png) to add the image to DOORS NG? I don't want to use the manuall process as the number of images is very large.

Thanks in advance,

Luis

2 answers



permanent link
Gabriel Ruelas (1.1k13) | answered May 30 '16, 9:47 a.m.
Hi Luis,
  Currently it is not possible to upload files using OSLC.
A non official/supported way is to use the private REST API, but that is subject to change between releases.

Comments
Luis Silva commented May 31 '16, 5:07 a.m.

Hi, thanks for the response.

What exactly do you mean by "way is to use the private REST API"? I'm sorry to ask but I'm new at this

Thanks


permanent link
Lonnie VanZandt (508) | answered Oct 20 '17, 2:55 p.m.

With a bit of effort, one can POST a well-formed MultiPart request to DNG's rm-projects...postWrappedResource service endpoint to convince Jazz DNG to accept the body content as a embeddable "wrapped resource".


My advice is to study what the Jazz UI is doing in a browser like Chrome with the Developer Toolset running and then attempt to reverse-engineer HTTP Requests in your REST client app (e.g. Postman or Paw or etc) until you successfully unlock the Jazz door and stumble into success. There are specialists who could help you or your organization solve these kinds of puzzles.

Your answer


Register or to post your answer.