IBM Maximo: Dicas de APIs Rest: Difference between revisions

From Wiki
Line 15: Line 15:
'''Response''''
'''Response''''


  {
  <nowiki>{
   "member": [
   "member": [
     {
     {
Line 43: Line 43:
     "pagenum": 1
     "pagenum": 1
   }
   }
  }
  }</nowiki>


= Ver também =
= Ver também =

Revision as of 19:40, 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>'

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
  }
 }

Ver também