AnsweredAssumed Answered

REST-API, getting process instance diagram question

Question asked by partizano on Nov 22, 2011
Latest reply on Nov 24, 2011 by partizano
Hi, Activiti Team!

I am trying to get process instance diagram by REST-API (http://localhost:8080/activiti-rest/service/processInstance/80910/diagram)… My request has the following headers:
Host   localhost:8080
User-Agent   Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20100101 Firefox/8.0
Accept   text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language   ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding   gzip, deflate
Accept-Charset   windows-1251,utf-8;q=0.7,*;q=0.7
Connection   keep-alive
Authorization   Basic a2VybWl0Omtlcm1pdA==
Content-Type   image/png
Referer   http://localhost:8080/loan_app/

The response from the server has the following headers:
Date   Tue, 22 Nov 2011 07:01:40 GMT
Accept-Ranges   bytes
Server   Restlet-Framework/2.0.8
Vary   Accept-Charset, Accept-Encoding, Accept-Language, Accept
Content-Type   application/json
Transfer-Encoding   chunked

As your can see, Content-Type of the response is "application/json", although the server must return image data. It is bug or not? Or am I doing somethin wrong?