OSLC Query for RTC returns error
I am trying to use the below query but gets error message as " The requested URL was not found on this server."
Can anyone please let me know what is wrong with the query.
|
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Jul 24 '23, 3:45 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER I would assume that the requested URL was not found on this server. This usually means that the URL is invalid. That can have various reasons.
Comments
G C
commented Jul 24 '23, 4:37 a.m.
The base URL was fetched with the help of the below link
Instead of https://localhost:9443" string i have replaced my server url
As suggested in the above link I had used below headers
Accept - application/rdf+xml
OSLC-Core-Version - 2.0
Yea, as I thought the error message is absolutely correct. Instead of trying to skip all information start at the beginning, especially https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20#Discovery_Mechanism . The boldface data (at least) is specific to the system where the example was run.
jazz/oslc/contexts/_ri93IEr1EemmCoWcAS2Uqw/workitems
You have to discover the OSLC Query URI for your system using the discovery through the rootservices, the service provider and the query capability.
See a walkthrough of discovery to find query capabilities here: https://jazz.net/forum/answer_link/266667/
Basically, the only URL you ever need to hardcode is the rootservices - after that use discovery, query etc. to find urls. Using hardcoded URLs is fragile across versions.
Use rootservices to discover the OSLC Service Provider Catalog of interest.
|
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.