Maximo Open Forum

 View Only
  • 1.  RESTAPI Response members

    Posted 2 days ago
    Edited by Appu nair 2 days ago

    in my Maximo install if I issue  this RESTCALL https://demo.manage.demo.apps.sno-cluster.nairkn.com/maximo/api/os/mxapiasset?oslc.select=siteid,assetnum,doclinks&oslc.where=assetnum=26200&lean=1&apikey=******** I get reults but in te returned members it drops the maximo context  see example

    so I have set mxe.oslc.restwebappurl,mxe.oslc.webappurl,mxe.rest.webappurl,mxe.adminurl all to https://demo.manage.demo.apps.sno-cluster.nairkn.com/maximo in spite of all of these the returned members come as 

    "doclinks": {
                    "href": "https://demo.manage.demo.apps.sno-cluster.nairkn.com/api/os/mxapiasset/_MjYkVERk9SRA--/doclinks"
                }  note if i click on that it will say no root can be found so if i manually insert maximo it works https://demo.manage.demo.apps.sno-cluster.nairkn.com/maximo/api/   if I am doing this wrong is there a correct way to set this context so i dont have to prepend maximo to every restapi call
    Environment is MAS9 on RHOS 4.16.37


    #Administration
    #Customizations
    #Integrations
    #MaximoApplicationSuite

    ------------------------------
    Appu nair
    APPECM
    ------------------------------



  • 2.  RE: RESTAPI Response members
    Best Answer

    Posted 2 days ago

    mxe.oslc.webappurl is the only system property you would need to change for this. The property is supposed to end in /maximo/oslc/ though, not /maximo, which is why you're likely encountering the issue. This is because it needs to replace the trailing /oslc/ with /api/.

    I wouldn't use it here, but in situations that you expect a different URL to be provided then the system property value, you can add a query parameter to all requests of relativeuri=1. This simplifies the href being returned. 

    In 9.1 of MAS, there is a setting (enabled by default) to set these via server bundle properties. 



    ------------------------------
    Steven Shull
    Naviam
    ------------------------------



  • 3.  RE: RESTAPI Response members

    Posted yesterday

    thanks it is working as we want it



    ------------------------------
    Appu nair
    APPECM
    ------------------------------