add restful api for sensor
add api resources for user