IBM Maximo: Dicas de APIs Rest: Difference between revisions
| Line 13: | Line 13: | ||
-H 'maxauth: '''<CHANGE_HERE>'''' | -H 'maxauth: '''<CHANGE_HERE>'''' | ||
'''Response | * Traz apenas parte dos atributos: oslc.select=intobjectname,description,rel.maxintobjdetail{objectname,hierarchypath} | ||
'''Response''' | |||
<nowiki>{ | <nowiki>{ | ||
Revision as of 19:42, 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.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
}
}