How to create/ Update Attributes Data Type of a project area in DNG using Java script and OSLC API
Accepted answer
Just for completeness, there are three public API's for DNG:
- RRC Reportable API - for reporting purposes, only reading artifacts
-
OSLC RM V2 API - the open standard way to programmatically integrate with DOORS NG, there is an elaborate workshop to get you started here OSLC Workshop article. Note that there is the Eclipse Lyo library that makes things easier.
- and additionally, there is the so called client extension capability
Comments
Thanks a lot for your reply. Please let me know how to fetch attribute data type with the OSLC REST API. As I could see in the link, it can be obtained for specific artifact's attribute data type.
In my case, I need to modify the artifact attribute data type of PA. E.g.: New ENUM value to be added for specific artifact attribute data type - "Status"
Check the workshop on how to get the attributes of an artifact. In OSLC it's not defined in terms of of artifact attributes and data types, but in the term of resource shapes, ie <oslc:resourceShape rdf:resource="https://<your server:9443/rm/types/<some UUID>"/>
And the OSLC API does not allow you to update resource shapes, you will need to do that through the web UI: manage project properties.