Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By higgledy
#813905
I have a requirement to get all cases of all users. i.e. all cases in the database for every user. I see that the standard REST API only returns cases of the logged in user. How do I get around this limitation?
By higgledy
#813917
Thanks Amos, but I want all cases for all users no matter the case status or assignee. This http://{domain}/api/1.0/{workspace}/extrarest/cases/user/{user_uid} takes a usr_uid which implies it will return only cases assigned to that user.
User avatar
By amosbatto
#813919
In the same plugin, you can use:
POST http://{domain}/api/1.0/{workspace}/extrarest/sql

POST parameters:
sql: SQL SELECT statement to execute

Example:
Code: Select all
$postVars = array( 
   sql  =  "SELECT * FROM APPLICATION"; // add your search criteria
);
$url = "/api/1.0/workflow/extrarest/case/sql";
$oRet = pmRestRequest("POST", $url, $aVars, $oToken->access_token); 

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]