OPNsense Forum

English Forums => General Discussion => Topic started by: pasha-19 on March 04, 2025, 08:50:37 PM

Title: What is MVC/API as it applies to dnsmasq?
Post by: pasha-19 on March 04, 2025, 08:50:37 PM
I have seen the following "dnsmasq: migrate to MVC/API".  Does this affect the ability to use dnsmasq?  I will admit MVC/API has little real meaning to me.  Searches using "opnsense MVC/API" shed no light on the issue.  API is application programming interface, I believe.  But as far as MVC goes -- that is move character in IBM 360/370 assembler language; which I know is clearly not applicable in this case as well as giving away my age.  Could someone explain please what MVC/API is in this case and if it affects dnsmasq usage.  Thanks in advance.
Title: Re: What is MVC/API as it applies to dnsmasq?
Post by: Patrick M. Hausen on March 04, 2025, 08:52:45 PM
The web UI and middleware has been rewritten from scratch to follow a more modern development paradigm. MVC - model, view, controller.

Most important user visible effect is that everything in the system that follows the new MVC model can be controlled via API while the legacy code that has not yet been converted cannot.
Title: Re: What is MVC/API as it applies to dnsmasq?
Post by: Seimus on March 05, 2025, 10:13:40 AM
As such this is a great move, which gives users possibility to do API calls and create more robust automatization either for configuration or Tshoot purposes.
Title: Re: What is MVC/API as it applies to dnsmasq?
Post by: pasha-19 on March 06, 2025, 12:39:00 AM
Thanks to both of you that cleared the matter up completely.