IBM Maximo: Dicas de APIs Rest: Difference between revisions
(→URLs) |
|||
| Line 42: | Line 42: | ||
! Key !! Value!! Description | ! Key !! Value!! Description | ||
|- | |- | ||
| maxauth | | '''maxauth'''=base64(username:password) || required || Username and Password encoded as base64 | ||
|- | |- | ||
| Content-Type | | Content-Type=application/json || - || - | ||
|- | |- | ||
| Accept | | Accept=application/json || - || - | ||
|} | |} | ||
Revision as of 20:02, 25 January 2022
Arquitetura
Documentação
Artigos de Referência
- Send notifications to Slack via Maximo Integration Framework
- Custom autoscript end point realizes to access OAuth2 protected resources
Technotes
URLs
/maximo/oslc/os/MXINTOBJECT
/maximo/oslc/os/MXOBJECTCFG
jsonschema/
GET jsonschema/mxapiwodetail – gets the schema for the OS, but one object at a time. GET jsonschema/mxapiwodetail?oslc.select=* - gets the full schema Support child object schemas GET jsonschema/mxapiasset/assetmeter Support schema views - Get jsonschema/mxapiasset?oslc.select=attr1,rel1.attr2 Mbo schemas GET jsonmboschemas/asset
Headers
| Key | Value | Description |
|---|---|---|
| maxauth=base64(username:password) | required | Username and Password encoded as base64 |
| Content-Type=application/json | - | - |
| Accept=application/json | - | - |
Parameters
| Key | Description |
|---|---|
| uri?lean=1 | simple notation |
| uri?oslc.select | Fields to retrieve. Sample: intobjectname,description,rel.maxintobjdetail{objectname,hierarchypath} |
| uri?oslc.pageSize=N |
|
| uri?oslc.where |
Where clause. Sample:
|
| uri?savedQuery=name | Saved query can be SQL, Java, Auto Script. /apimeta/<os name> lists all saved queries for an Object Structure |
| uri?tlrange=-3M&tlattribute=dateattr[=indexdate] |
index data specified, its defaulted to the current date-time.
|
| POST uri?interactive=1 | Handling Yes/No/Cancel interactions |
| GET uri?gbcols=status,count.*,sum.attr1&gbsortby=-count.* |
Aggregation APIs. Also supports date histograms – yearly/quarterly/monthly/weekly. For example GET /mxapiwodetail? gbcols=year$statusdate,quarter$statusdate,sum.actlabhrs |
oslc.select
| Key | Description |
|---|---|
| oslc.select=attr1,attr2,child{attr4,attr5,grandchild{*}} | - |
| oslc.select=attr1,rel1.attr1,rel.rel2{attr1,attr2},rel.rel3.os {*} |
|
oslc.where
| Key | Description |
|---|---|
| uri?oslc.where=attr1 in [“val1”,”val2”] and attr2>200 | - |
| uri?oslc.where=objectname IN ['WORKORDER','WOACTIVITY'] | - |
| uri?oslc.where=usewith='INTEGRATION' | - |
