rest api for nimsoft not working