basic rest api working