http://doc.owncloud.org/server/7.0/developer_manual/app/controllers.html

Working on news rewrite and tons of exercises on university so no time, see stable7 branch for references e.g. https://github.com/owncloud/news/blob/stable7/controller/feedcontroller.php