Expose Node degree in REST API.