added api documentation in api.json