IBM Maximo: Dicas de APIs Rest
Documento em Rascunho (Draft)
URLs
Getting the list of Object Structures
Request
curl -X GET '/maximo/oslc/os/MXINTOBJECT?lean=1&oslc.select=intobjectname,description,rel.maxintobjdetail{objectname,hierarchypath}&oslc.pageSize=1001&oslc.where=usewith%3D%22INTEGRATION%22' \
-H 'Accept: application/json' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-H 'maxauth: <CHANGE_HERE>'
Response'
{
"member": [
{
"_rowstamp": "1401947183",
"maxintobjdetail_collectionref": "https://mx.com/maximo/oslc/os/mxintobject/_TVhJTlZFTlRPUlk-/maxintobjdetail",
"description": "Definição de Blablabla",
"maxintobjapp_collectionref": "https://mx.com/maximo/oslc/os/mxintobject/_TVhJTlZFTlRPUlk-/maxintobjapp",
"maxintobjdetail": [
{
"hierarchypath": "WORKORDER",
"objectname": "WORKORDER"
},
{
"hierarchypath": "WORKORDER/WOACTIVITY",
"objectname": "WOACTIVITY"
},
],
"href": "https://mx.com/maximo/oslc/os/mxintobject/_TVhJTlZFTlRPUlk-",
"intobjectname": "MXWOBLABLA"
},
...
],
"href": "https://mx.com/maximo/oslc/os/MXINTOBJECT",
"responseInfo": {
"href": "https://mx.com/maximo/oslc/os/MXINTOBJECT?lean=1&oslc.select=intobjectname,description,rel.maxintobjdetail{objectname,hierarchypath}&oslc.pageSize=1001&oslc.where=usewith%3D%22INTEGRATION%22",
"pagenum": 1
}
}