zervnet / pdns

PowerDNS
GNU General Public License v2.0
0 stars 0 forks source link

pdnsutil and REST API implement redundant functionallity #6

Open zervnet opened 8 years ago

zervnet commented 8 years ago

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.