It's all about the answers!

Ask a question

DOORS Next Generation Rest Api - oslc.where with modified date


Soeren Schilling (112) | asked Aug 02 '18, 6:15 a.m.
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



permanent link
Ian Barnard (1.9k613) | 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
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?

permanent link
Soeren Schilling (112) | answered Aug 02 '18, 12:23 p.m.
Got an answer from the IBM Support:

https://server:port/rm/publish/resources/*?modifiedSince=2018-08-02T13:43:25.000-0400

Comments
Ian Barnard commented Aug 02 '18, 12:48 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 OK, that's using the reportable rest api :-) Good answer.


permanent link
Sascha Huk (11) | answered Aug 10 '20, 9:21 a.m.

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


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.