IBM Maximo: Dicas de APIs Rest: Difference between revisions
Line 42: | Line 42: | ||
"href": "https://mx.com/maximo/oslc/os/MXINTOBJECT", | "href": "https://mx.com/maximo/oslc/os/MXINTOBJECT", | ||
"responseInfo": { | "responseInfo": { | ||
"href": "https://mx. | "href": "https://mx....", | ||
"pagenum": 1 | "pagenum": 1 | ||
} | } |
Revision as of 19:43, 8 December 2021
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>'
- Traz apenas parte dos atributos: oslc.select=intobjectname,description,rel.maxintobjdetail{objectname,hierarchypath}
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....", "pagenum": 1 } }