rest api working