Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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.






0 votes



One answer

Permanent link
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

0 votes

Comments

Hi Ian ,

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

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,927
× 38

Question asked: Apr 20 '20, 9:18 a.m.

Question was seen: 2,082 times

Last updated: Apr 30 '20, 7:47 a.m.

Confirmation Cancel Confirm