Best way to setup the configTree with le_cfg

we are looking at setting up the configTree for the wifiService through legato, I understand this should be wby using the le_cfg API?
Is there any example of code about how this can be done?
It would help us a lot.
Thanks

You can see here on config tree example

it seems working for writing the configTree, cheers