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

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?

0 votes



3 answers

Permanent link

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

0 votes

Comments
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
Got an answer from the IBM Support:

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

0 votes

Comments

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


Permanent link

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


0 votes

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
× 11,074

Question asked: Aug 02 '18, 6:15 a.m.

Question was seen: 4,931 times

Last updated: Aug 10 '20, 9:21 a.m.

Confirmation Cancel Confirm