<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
Using db_http and permission modules and can't figure out what
exactly should be returned from an HTTP API when 'address' table is
empty and SELECT returns no results.<br>
<br>
Here is what I tried with no luck:<br>
1.<br>
Status:<br>
200 OK<br>
Body: <br>
string,int,int,int,string,string,string,int<br>
2. <br>
Status:<br>
200 OK<br>
Body: <br>
string,int,int,int,string,string,string,int<br>
,,,,,,,<br>
3.<br>
Status:<br>
200 OK<br>
Body:<br>
empty body<br>
4. <br>
Status:<br>
404 Not Found<br>
Body:<br>
empty<br>
<br>
db_http documentation says "<u>If the query is ok (even if the
answer is empty) the server must reply with a 200 OK HTTP reply
with a body containing the types and values of the columns.</u>".
I have no idea what "values" should I return from http API in this
corner case. Adding some fake records to a table doesn't look like a
good solution.<br>
Any input would be greatly appreciated!<br>
<p><br>
</p>
</body>
</html>