We would propose to implement an underlying Interface that encapsulates the needed functionallity. This would lead to less code redundancy and a more uniform way to interact with the software as the REST API and the pdnsutil tool would use the same interface.
The REST API and the pdnsutil command line tool both implement the same functionality, this leads to heavy code redundancy.
You can see that ws-auth.cc (REST API) and pdnsutil.cc feature the same code in quite some cases. For examples see:
We would propose to implement an underlying Interface that encapsulates the needed functionallity. This would lead to less code redundancy and a more uniform way to interact with the software as the REST API and the pdnsutil tool would use the same interface.
Any input would be highly appreciated.