It's all about the answers!

Ask a question

Getting bad request for OSLC API for DNG REQIF Export


Karandeep Singh (112) | asked Apr 20 '20, 9:18 a.m.

 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

and Body as

<rdf:RDF
    xmlns:dcterms="http://purl.org/dc/terms/"
    xmlns:dng_reqif="http://jazz.net/ns/rm/dng/reqif#">
<dng_reqif:ReqIFExport>
</dng_reqif:ReqIFExport>
</rdf:RDF>


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.






One answer



permanent link
Ian Barnard (1.9k613) | answered Apr 29 '20, 5:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Karandeep

Reqif export seems to work using local configuration - so instead of oslc_config.context use vvc.configuration with value the local configuration you want to export from.

HTH
Ian


Comments
Karandeep Singh commented Apr 30 '20, 7:19 a.m.

Hi Ian ,

Tried using local configuration also but it didn't work.


Ian Barnard commented Apr 30 '20, 7:47 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

This definitely can work - get it going in a browser REST client. You can get check that you have the correct reqif definition (it has to be in the same project) using the Reqif Query capability.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.