basic api that returns json