How To
Summary
How to Export the ReqIF File containing the requirements using REST API
Steps
For Ex:
https://jazz.ibm.com:9443/rm/reqif/definitions?resourceContext=https://jazz.ibm.com:9443/rm/rm-projects/_JNvBkMXyEemz4N5aE1p9EA /components/_JNvBkMXyEemz4N5aE1p9EA
ReqIF Definition : https://jazz.ibm.com:9443/rm/reqif/_Hvg74YYoEeqy86prOUqMsA
- Method 1:
POST Method URL:
https://jazz.ibm.com:9443/rm/reqif_oslc/export?componentURI=https://<server>:9443/rm/rm-projects/<project_id>/components/<component id>
For Ex:
https://jazz.ibm.com:9443/rm/reqif_oslc/export?componentURI=https://jazz.ibm.com:9443/rm/rm-projects/_JNvBkMXyEemz4N5aE1p9EA/components/_JNvBkMXyEemz4N5aE1p9EA
Headers:
OSLC-Core-Version : 2.0
Content-Type: application/rdf+xml
oslc_config.context:https://<server>:9443/gc/configuration/26(GlobalConfiguration)
vvc.configuration: https://<server>:9443/rm/cm/stream/<stream_Id>(Local Configuration)
net.jazz.jfs.owning-context:https://<server>:9443/rm/rm-projects/<project_id>/components/<component_id>
For Ex:
OSLC-Core-Version : 2.0
Content-Type: application/rdf+xml
oslc_config.context:https://jazz.ibm.com:9443/gc/configuration/26
vvc.configuration:https://jazz.ibm.com:9443/rm/cm/stream/_1Thftk4WEeqP383r8d4uHw
net.jazz.jfs.owning-context:https://jazz.ibm.com:9443/rm/rm-projects/_JNvBkMXyEemz4N5aE1p9EA/components/_JYxM4MXyEemz4N5aE1p9EA
Body:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dng_reqif="http://jazz.net/ns/rm/dng/reqif#">
<dng_reqif:ReqIFExport>
<dng_reqif:definition rdf:resource="https://jazz.ibm.com:9443/rm/reqif/_Hvg74YYoEeqy86prOUqMsA"/>;
</dng_reqif:ReqIFExport>
</rdf:RDF>
- Method 2:
POST Method URL:
https://<server>:9443/rm/reqif/export?reqIFDataDefinition=https://<server>:9443/rm/reqif/<reqIF_id>
For Example:
Headers:
OSLC-Core-Version : 2.0
Content-Type: application/rdf+xml
oslc_config.context:https://<server>:9443/gc/configuration/26(GlobalConfiguration)
vvc.configuration: https://<server>:9443/rm/cm/stream/<stream_Id>(Local Configuration)
net.jazz.jfs.owning-context:https://<server>:9443/rm/rm-projects/<project_id>/components/<component_id>
- 3)Successful ReqIF export through Rest API can be observed in Manage component properties—>ReqIF Page:
Document Location
Worldwide
Product Synonym
Rational DOORS Next Generation
Was this topic helpful?
Document Information
Modified date:
06 August 2024
UID
ibm16247509