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
2 answers
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.
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.
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.