Will nso have northbound api (like REST) can directly config devices, without using the service, in other words, I do not need to define the service to operate the device，the effect is similar to config device directly on the nso cli?
Yes, the NSO NBIs - RESTCONF, NETCONF, etc. lets you interact with any YANG model in the system - device models (from the NEDs) as well as service models.
please refer to the API guide in your NSO installation, under the docs directory
you can also find a number of examples here on the NSO Developer Hub. just search for RESTCONF
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: