DOORS OSLC API Query search "type of module"
I'm looking for a way to search for artifacts of type module.
|
Accepted answer
Ian Barnard (2.3k●7●14)
| answered Jul 05 '21, 6:10 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jul 05 '21, 11:56 a.m. > oslc.where=jazz_rm:artifactFormat="http://jazz.net/ns/rm/dng/type/format#Module"
This doesn't work because
1) the capitalisation of artifactFormat is wrong, should be ArtifactFormat
2) the prefix jazz_rm (http://jazz.net/ns/rm#) isn't right for ArtifactFormat
3) URIs aren't strings - they MUST be surrounded by < >
This works for 7.0.2:
Where prefixes are:
This doesn't work because the URI isn't surrounded by < >
This does work:
Don't forget the correct URL parameter encoding is needed for the strings on RHS of oslc.where= and oslc.prefix=
An example of a fully encoded query (this includes oslc.select so some additional prefixes are included)::
The GET has to be accompanied by required header:
and a configuration header such as:
HIROAKI JOSAKO selected this answer as the correct answer
Comments
HIROAKI JOSAKO
commented Jul 06 '21, 4:12 a.m.
Thank you carefully.
|
One other answer
David Honey (1.8k●1●7)
| answered Jul 05 '21, 5:20 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER In OSLC query expressions, URIs should be enclosed in <>. They are not string literals. See OSLC Query 3.0 - oslc.where . Also, remember that parameter values should be URL encoded in the HTTP GET or POST.
Comments
HIROAKI JOSAKO
commented Jul 06 '21, 4:10 a.m.
Using URL, set <> even in the case of parameter values! !
|
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.