Added rest api for setting values