Querying Incidents
You can query incidents by using OSLC Query Syntax.
For information about OSLC Query Syntax, see open-services.net/bin/view/Main/OSLCCoreSpecQuery.
HTTP Method: | GET | |
Query Parameters: | oslc.where | Defines the conditions that related resources must satisfy. It is like the “WHERE” clause of a SQL statement. |
oslc.select | Defines the properties of the detail resource that display in the results of the HTTP response. It is like the column list component of a “SELECT” SQL statement. | |
Request Headers: | Authorization | Required. See the Configuring section of this document. |
Host | Required | |
Accept: |
|
|
Request Body: | N/A | |
Example URIs: | http://localhost:7001/maximo/oslc/os/oslcincident?oslc.select=dcterms:title &oslc.where=dcterms:title="My New Incident" |
To query Incidents with OSLC Query
Syntax, follow the example. Substitute the example host and port with
your host and port.
GET http://localhost:7001/maximo/oslc/os/oslcincident?oslc.select=dcterms:title
&oslc.where=dcterms:title="My New Incident"
Accept: application/json
{
"prefixes": {
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"dcterms": "http://purl.org/dc/terms/",
"oslc": "http://open-services.net/ns/core#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#"
},
"rdfs:member": [
{
"dcterms:title": "My New Incident",
"rdf:about": "http://localhost/maximo/oslc/os/oslcincident/
_WysoJyl_IElOQ0lERU5UXS8xMDAy"
},
{
"dcterms:title": "My New Incident",
"rdf:about": "http://localhost/maximo/oslc/os/oslcincident/
_WysoJyl_IElOQ0lERU5UXS8xMDI0"
}
],
"rdf:about": "http://localhost/maximo/oslc/os/oslcincident"
}