How to call script in Rest api with url

Hello Experts,

Please help me in below 2 queries....

Query1: How to call a script in rest api with parameters, please provide an example with URL'S...

Query2: How to send a request with an sql query in rest api, we can achieve it or not via sql query based

sample query :  select ads.cn, p.internalname from adsaccount ads join person p on ads.uid_person=p.uid_person

By using above sample query can we get a response via rest api....

Thank in Advance............

Top Replies

Parents Reply
  • I managed to get the API calls to log me as a System User. I tried the example in the link provided by Sebastian: https://<Hostname>/AppServer/api/script/QER_GetWebBaseURL

    and the result I got was 

    {
         "responseStatus": {
            "errorCode": "NotImplementedException",
            "message": "Could not find method named Post(ExecuteScriptRequest) or Any(ExecuteScriptRequest) on Service ScriptsService"
        }
    }

    So I was able to log in via a POST call and I was also able to get information from a Person entity using:

    https://<Hostname>/AppServer/api/entity/Person/:uid

    The account I'm using has admin access so I don't think it's a permissions issue but I could be wrong. How should I proceed?

Children