added new file, finished listall, listbyid JSON API