Added the API functionality.. index.php/api/posts/ returns list of tests