Help on OSLC Post to CQ
4 answers
Hello Karthik
Please refer to the following "ClearQuest OSLC CM REST API" wiki page - it contains lots of examples.
https://jazz.net/wiki/bin/view/Main/RcmRestCmApi
If there are areas you want to see more examples, send your comments to us.
Thanks
- Yuhong
Yuhong Yin
CC/CQ CM Server & Integrations
Please refer to the following "ClearQuest OSLC CM REST API" wiki page - it contains lots of examples.
https://jazz.net/wiki/bin/view/Main/RcmRestCmApi
If there are areas you want to see more examples, send your comments to us.
Thanks
- Yuhong
Yuhong Yin
CC/CQ CM Server & Integrations
Thanks Yuhong.
I am looking for more examples in terms of the XML Node structure etc
Would be great if could point me in that direction
Cheers,
Karthik
I am looking for more examples in terms of the XML Node structure etc
Would be great if could point me in that direction
Cheers,
Karthik
Hello Karthik
Please refer to the following "ClearQuest OSLC CM REST API" wiki page - it contains lots of examples.
https://jazz.net/wiki/bin/view/Main/RcmRestCmApi
If there are areas you want to see more examples, send your comments to us.
Thanks
- Yuhong
Yuhong Yin
CC/CQ CM Server & Integrations
It should go like this:
https://test.com/cqweb/oslc/repo/REPO-NAME/db/DB-SET/record
set Content-Type of request body to "application/xml"
request body:
<?xml version="1.0" encoding="UTF-8"?>
<Defect xmlns="http://www.ibm.com/xmlns/prod/rational/clearquest/1.0/" xmlns:dc="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/">
<dc:type rdf:resource="https://test.com/cqweb/oslc/repo/REPO-NAME/db/DB-SET/record-type/16777666">Defect</dc:type>
<Project>DB-SET00000001</Project>
<Title>POST-TEST</Title>
</Defect>
keywords: OSCL V1.0 POST example sample
https://test.com/cqweb/oslc/repo/REPO-NAME/db/DB-SET/record
set Content-Type of request body to "application/xml"
request body:
<?xml version="1.0" encoding="UTF-8"?>
<Defect xmlns="http://www.ibm.com/xmlns/prod/rational/clearquest/1.0/" xmlns:dc="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/">
<dc:type rdf:resource="https://test.com/cqweb/oslc/repo/REPO-NAME/db/DB-SET/record-type/16777666">Defect</dc:type>
<Project>DB-SET00000001</Project>
<Title>POST-TEST</Title>
</Defect>
keywords: OSCL V1.0 POST example sample