It's all about the answers!

Ask a question

oslc REST API: POST requirements with images in primary text


Luis Silva (2557) | asked May 07 '16, 3:07 p.m.
 Hi,

I'm new at the RM OSCL REST API but I've been able to create a requirement through the creationFactory. However, I would like to ask you how to POST a requirement which has an image in the artifact descrption. Do I have to previously import the image and then use the image resource link in the description of the artifact? Is it possible to do this in one step approach?´

Thanks in advance,
Luis

Accepted answer


permanent link
Donald Nong (14.5k414) | answered May 09 '16, 2:14 a.m.
This has to be a two-step approach. See below post for a similar discussion.
https://jazz.net/forum/questions/172917/image-traceability-in-dng

Luis Silva selected this answer as the correct answer

Comments
Luis Silva commented May 16 '16, 9:51 a.m.

 Thank you for the response! 

The post was very helpfull!

One other answer



permanent link
Jean-Luc Johnson (8125) | answered May 09 '16, 11:48 a.m.
edited May 09 '16, 11:54 a.m.
Hello Luis Silva,

Everything is a resource in the new paradigm based on OSLC and the Linked Data approach. First you would need to POST a requirement (or any other artifact type) with an attached image.
Then you should add a HTML image tag into the second requirement pointing to the image.

Your answer


Register or to post your answer.