DOORS Next Generation Rest Api - oslc.where with modified date
I want to query the artifacts from RDNG which were modified within - let's say the last twentyfour hours or something via Rest service.
I built the following querying-URL:
The problem: It returns no artifacts. If I just remove the oslc.where part it works fine and a lot of artifacts are returned.
I also tried some different date formats like "2018-08-02" or "2 August 2018" - but still nothing.
Does anyone have a hint?
|
3 answers
Ian Barnard (1.9k●6●13)
| answered Aug 02 '18, 9:23 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Hi Soeren
If you pasted in your question the actual literal URL you built, you need to URL-encode all the parameter value strings
For example the oslc.prefix value
dcterms=<http://purl.org/dc/terms/>
should be encoded as this in the actual URL:
dcterms%3D%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E
Same for all the other parameters. Then combine them into the full URL
HTH
Ian
Comments
Soeren Schilling
commented Aug 02 '18, 10:24 a.m.
Hi Ian
Thanks for this idea - of course I encoded the URL before sending the query, so this doesn't help unfortunately. Any other idea?
|
Got an answer from the IBM Support:
https://server:port/rm/publish/resources/*?modifiedSince=2018-08-02T13:43:25.000-0400
|
This works, but too slow (often results in timeouts, i.e., 503 errors):
oslc.where=dcterms:modified>"2018-08-02T00:00:00.000Z"^^xsd:dateTime
|
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.