MantisBT - TestLink
View Issue Details
0005865TestLinkAPI - RESTpublic2013-08-16 19:482013-09-08 17:53
lczub 
fman 
normalfeature requestalways
closedfixed 
1.9.7 (2013 Q2 - bug fixing) 
1.9.8 (2013 Q3 - bug fixing) 
Postgres
READY FOR TESTING
0005865: REST response header should define content-type application/json
The 1.9.7 TestLink REST implementation uses the Slim Framework default settings 'text/html' for the response header content-type.

Cause the response body includes a JSON data structure and not html, the response header should define the content-type 'application/json'

curl -i -X GET -u ApiDevKey:NoPWNeeded http://localhost/testlink/lib/api/rest/v1/testprojects [^]

HTTP/1.1 200 OK
Date: Fri, 16 Aug 2013 19:36:17 GMT
Server: Apache/2.2.22 (Debian)
X-Powered-By: PHP/5.4.4-14+deb7u3
Set-Cookie: PHPSESSID=aremob7mabq3iga87215ak5i42; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Length: 707
Content-Type: text/html

{"status":"ok","message":"ok","item":[{"id":"1","notes":"

\r\n\tDummy Test Projekt for Experinces<\/p>","color":"","active":"1","option_reqs":"0","option_prio ....

http://docs.slimframework.com/#Response-Headers [^]
No tags attached.
child of 0005731closed fman Availables hot-fixes for 1.9.7 & How To get full fixed package from gitorious 
Issue History
2013-08-16 19:48lczubNew Issue
2013-08-17 08:02fmanNote Added: 0019441
2013-08-17 09:00fmanQA Team - Task Workflow StatusTBD => READY FOR TESTING
2013-08-17 09:00fmanStatusnew => resolved
2013-08-17 09:00fmanFixed in Version => 1.9.8 (2013 Q3 - bug fixing)
2013-08-17 09:00fmanResolutionopen => fixed
2013-08-17 09:00fmanAssigned To => fman
2013-08-17 09:00fmanRelationship addedchild of 0005731
2013-09-08 17:53fmanNote Added: 0019522
2013-09-08 17:53fmanStatusresolved => closed

Notes
(0019441)
fman   
2013-08-17 08:02   
ok, will give a look to this
(0019522)
fman   
2013-09-08 17:53   
1.9.8 released