<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Lucida Console'; font-size:9pt; font-weight:400; font-style:normal;">On Dienstag, 23. Juni 2009, Konstantin Cherkasov wrote:<br>
&gt; Our company seeking for programmer who can create module for flexible<br>
&gt; database access.<br>
&gt;<br>
&gt; I call it db_rest (or db_http). This module must provide internal database<br>
&gt; API for other modules like db_auth. For access to external data it must use<br>
&gt; HTTPS-server and use REST-style data access<br>
&gt; (http://en.wikipedia.org/wiki/Representational_State_Transfer).<br>
&gt;<br>
&gt; Instead of making query like "SELECT f1,f2,f3 FROM tableA WHERE f4 =<br>
&gt; 'somevalue'" it must call HTTPS-server like this:<br>
&gt;    GET http://hostname/database/tableA&amp;c=f1,f2,f3&amp;k=f4&amp;op=eq&amp;v=somevalue<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Hello Constantin,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>you probably already investigated this, but are you aware of the http_query function in the utils module?<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>http://www.kamailio.org/docs/modules/1.5.x/utils.html#id2454145<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>If this don't meet your requirements yet, perhaps it can be extended?<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Henning</p></body></html>