1 Reply Latest reply on Aug 29, 2016 9:07 AM by abullor

    JBPM Rest API

    achad

      I am trying to get the responses in JSON instead of XML.   Even when  specify application/json in header the response is returned in XML !!!!

      What am I missing ?

      Does it mean we have to always convert to JSON ?

       

      curl -X GET -H "Accept-Language: en-US" -H "Authorization: Basic a3Jpc3Y6a3Jpc3Y=" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: aed114e3-efba-d3a0-1075-a6c109fa3fa1" "http://localhost:8080/jbpm-console/rest/task/2"

       

      Abdu Chadili

       

      17.1.1. Additional Information

       

       

      17.1.1.1. Serialization: JAXB or JSON

       

      Serialization (json/jaxb)

      Except for the Execute calls, all other REST calls described below can use either JAXB or JSON.

      All REST calls, unless otherwise specified, will use JAXB serialization.

      When using JSON, make sure to add the JSON media type ("application/json") to the ACCEPT header of your REST call.