It's all about the answers!

Ask a question

Query the Asset using http://server:8080/ram/oslc/simpleQuer


huafang Tan (415) | asked May 27 '10, 9:33 p.m.
query the asset using http://server:8080/ram/oslc/simpleQuery?oslc_asset.query=title="xxx". The return has not included any atom entry. I search with the same name in the web ui, it return the result.

BTW, in the current version, we do not need login when we do search. Is it correct?

5 answers



permanent link
Gili Mendel (1.8k56) | answered May 28 '10, 8:26 a.m.
JAZZ DEVELOPER
Try ....?oslc_asset.query=dc:title="*" (dc:title, vs. title)

Permissions works as usual... if you use the web ... the same session would be used for your rests calls.

permanent link
Kevin Bauer (34621) | answered May 28 '10, 9:31 a.m.
JAZZ DEVELOPER
You do not have to log in to use the OSLC search on the web war (http://server:8080/ram/oslc/simpleQuery) but it will only return assets visible to an anonymous user. To get results as a specific user you need to login to the session prior to calling http://server:8080/ram/oslc/simpleQuery.

If you are performing this search through a remote client (not the browser) you may want to use BASIC authentication on the web services war (http://server:8080/ram.ws/oslc/simpleQuery).

permanent link
huafang Tan (415) | answered May 31 '10, 2:59 a.m.
Try ....?oslc_asset.query=dc:title="*" (dc:title, vs. title)

Permissions works as usual... if you use the web ... the same session would be used for your rests calls.


I try it. But it retured, could not parse query term: dc:title=*

permanent link
Kevin Bauer (34621) | answered May 31 '10, 8:59 a.m.
JAZZ DEVELOPER
It looks like you lost the quotes around the *.

dc:title="*" not dc:title=*

permanent link
huafang Tan (415) | answered May 31 '10, 9:29 p.m.
It looks like you lost the quotes around the *.

dc:title="*" not dc:title=*


No, I use the dc:title="*", not dc:title=*

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.