4. 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
22. 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
}
28. 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;
}