Added node and noderole to api

Signed-off-by: Seemant Rajvanshi <seemant.rajvanshi@gmail.com>