Basic API

implemented basic api. accessible by /api