FE html ajax flash flex air silverlight...
BE cgi perl asp php asp.net java c c++
WEB server PWS IIS apache tomcat resin jboss oc4j
lighttpd nginx
Function REST(uri, request){
if(request == get) data = getDataFrom(table);
if(request == post) data = createDataFrom(table);
if(request == put) data = updateDataFrom(table);
if(request == delete) data = deleteDataFrom(table);
Retrun dataParser(data); //json xml and so on
}
23.
使用中的牛 X 项目:
OpenResty Yahoo AgentZh Perl
http://search.cpan.org/dist/OpenResty/
Nginx openresty plan TaoBao C/C++
http://www.pgsqldb.org/mwiki/index.php/Nginx_
openresty_plan
http://fun.yahoo.cn/admin/login.html
location ~ '^/cat/(d+)'{
set $id $1;
set_form_input $name;
set_quote_sql_str $quoted_name $name;
postgres_query GET "select * from cats
where id=$id";
postgres_query DELETE "delete from cats
where id=$id";
postgres_query POST "insert into cats (id,
name) values($id, $quoted_name)";
postgres_pass my_pg_backend;
}