Getting bad request for OSLC API for DNG REQIF Export
Hi,
I am unable to export ReqIF file using this "https://localhost:9443/rm/reqif_oslc/export?componentURI=https%3A%2F%2Flocalhost%3A9443%2Frm%2Fcm%2Fcomponent%2F_YvvTgC7EEequz6N99mc0aw" Api.
Following is the request headers I am using:
oslc-core-version : 2.0
Content-Type: applicaction/rdf+xml
oslc_config.context: https://localhost:9443/gc/configuration/109
and Body as
<rdf:RDF
xmlns:dcterms="http://purl.org/dc/terms/"
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://localhost:9443/rm/reqif/_f6aI0X-1EeqGiqHth5VF3w"/>
</dng_reqif:ReqIFExport>
</rdf:RDF>
I have got the reqif definition resource url using ReqIF definition factory Api ( https://localhost:9443/rm/reqif_oslc/definitions?componentURI=https%3A%2F%2Feis-alm-appserver2%3A9443%2Frm%2Fcm%2Fcomponent%2F_YvvTgC7EEequz6N99mc0aw ).
On submitting the request
I receive the response as Status:400 Bad Request as " No project context was provided for the request".
Further I explored and added one query parameter as
ProjectURL :"https%3A%2F%2Flocalhost%3A9443%2Frm%2Fprocess%2Fproject-areas%2F_Ynsx0C7EEequz6N99mc0aw"
this time I got
Response as Status: 400 Bad Request as " ReqIF definition not specified or definition cannot be found"
Can anyone please help me in identifying where I am going wrong as I am getting the ReqIF definition Url in previous step using the ReqIf Definition factory API, so the definition is already present.
What might be causing this error? and Do I have to specify ProjectURL parameter in ReqIF export request?.
I am using version RDNG 6.0.