cancel
Showing results for 
Search instead for 
Did you mean: 

Problem call REST Api List Process Definitions

suseno
Champ on-the-rise
Champ on-the-rise
i'm currently trying to call rest api to get list of process definitions using GRAILS  with rest-client-builder plugin.
code :

[
def rest = new RestBuilder()
      def url = 'http://localhost:8080/activiti-rest/service/process-definitions?start=0&size=20&sort=id&order=asc'
      
      println url
      def resp = rest.get(url) {
         auth "kermit","kermit"
         accept "application/json"
         contentType "application/json"
      }
      
      println resp.status
      println resp.json
      session.listgroup=resp.json.data
]


i always get response status 400 from the code above

currently i'm succeed call api to get list of deployments, user groups

why i always get result 400 when calling code above..


1 REPLY 1

jbarrez
Star Contributor
Star Contributor
400 means there is something wrong with your request … do you see any stack traces on the Activiti Rest server that could explain this?