HTTP call for adding link to requirement


#1

How do I add a link, e.g. a ‘link to’, to an existing requirement? Please answer with Java code example.


#2

Hello @reimer,

Your question does not have enough details to give you a piece of (working) code.

Let’s start at the beginning: when you say requirement, I assume you mean http://docs.oasis-open.org/oslc-domains/oslc-rm/v2.1/cs01/part2-requirements-management-vocab/oslc-rm-v2.1-cs01-part2-requirements-management-vocab.html#requirement. Then, I assume by a link you mean a property like oslc_rm:affectedBy.

Now, I also assume you already have an OSLC Server running with requirements. Then, you should use an OslcClient class to connect to your server. Here is some sample code how to add links.

Hope it helps.

/Andrew