Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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

1 vote



2 answers

Permanent link
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.

1 vote

Comments

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

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.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,936
× 515
× 478
× 139
× 137

Question asked: May 30 '16, 6:58 a.m.

Question was seen: 5,560 times

Last updated: Oct 20 '17, 2:55 p.m.

Confirmation Cancel Confirm