HTTP call for adding link to requirement


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


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