AnsweredAssumed Answered

Problem call REST Api  List Process Definitions

Question asked by suseno on May 28, 2013
Latest reply on May 29, 2013 by jbarrez
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..


Outcomes