added api returns json through get requests