0.0.2 • Published 1 year ago

adguardhome v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

AdGuardHome Node.js Module

This node module is mostly generated with https://github.com/OpenAPITools/openapi-generator from AdGuardHome's OpenAPI Docu https://github.com/AdguardTeam/AdGuardHome/blob/master/openapi/openapi.yaml. It's tested againt AdGuardHome's version 0.107.

:memo: Documentation for API Endpoints

ClassMethodHTTP requestDescription
AdGuardHome.BlockedServicesApiblockedServicesAllGET /blocked_services/allGet available services to use for blocking
AdGuardHome.BlockedServicesApiblockedServicesAvailableServicesGET /blocked_services/servicesGet available services to use for blocking
AdGuardHome.BlockedServicesApiblockedServicesListGET /blocked_services/listGet blocked services list
AdGuardHome.BlockedServicesApiblockedServicesScheduleGET /blocked_services/getGet blocked services
AdGuardHome.BlockedServicesApiblockedServicesScheduleUpdatePUT /blocked_services/updateUpdate blocked services
AdGuardHome.BlockedServicesApiblockedServicesSetPOST /blocked_services/setSet blocked services list
AdGuardHome.ClientsApiaccessListGET /access/listList (dis)allowed clients, blocked hosts, etc.
AdGuardHome.ClientsApiaccessSetPOST /access/setSet (dis)allowed clients, blocked hosts, etc.
AdGuardHome.ClientsApiclientsAddPOST /clients/addAdd a new client
AdGuardHome.ClientsApiclientsDeletePOST /clients/deleteRemove a client
AdGuardHome.ClientsApiclientsFindGET /clients/findGet information about clients by their IP addresses or ClientIDs.
AdGuardHome.ClientsApiclientsStatusGET /clientsGet information about configured clients
AdGuardHome.ClientsApiclientsUpdatePOST /clients/updateUpdate client information
AdGuardHome.DhcpApicheckActiveDhcpPOST /dhcp/find_active_dhcpSearches for an active DHCP server on the network
AdGuardHome.DhcpApidhcpAddStaticLeasePOST /dhcp/add_static_leaseAdds a static lease
AdGuardHome.DhcpApidhcpInterfacesGET /dhcp/interfacesGets the available interfaces
AdGuardHome.DhcpApidhcpRemoveStaticLeasePOST /dhcp/remove_static_leaseRemoves a static lease
AdGuardHome.DhcpApidhcpResetPOST /dhcp/resetReset DHCP configuration
AdGuardHome.DhcpApidhcpResetLeasesPOST /dhcp/reset_leasesReset DHCP leases
AdGuardHome.DhcpApidhcpSetConfigPOST /dhcp/set_configUpdates the current DHCP server configuration
AdGuardHome.DhcpApidhcpStatusGET /dhcp/statusGets the current DHCP settings and status
AdGuardHome.DhcpApidhcpUpdateStaticLeasePOST /dhcp/update_static_leaseUpdates a static lease
AdGuardHome.FilteringApifilteringAddURLPOST /filtering/add_urlAdd filter URL or an absolute file path
AdGuardHome.FilteringApifilteringCheckHostGET /filtering/check_hostCheck if host name is filtered
AdGuardHome.FilteringApifilteringConfigPOST /filtering/configSet filtering parameters
AdGuardHome.FilteringApifilteringRefreshPOST /filtering/refreshReload filtering rules from URLs. This might be needed if new URL was just added and you don't want to wait for automatic refresh to kick in. This API request is ratelimited, so you can call it freely as often as you like, it wont create unnecessary burden on servers that host the URL. This should work as intended, a `force` parameter is offered as last-resort attempt to make filter lists fresh. If you ever find yourself using `force` to make something work that otherwise wont, this is a bug and report it accordingly.
AdGuardHome.FilteringApifilteringRemoveURLPOST /filtering/remove_urlRemove filter URL
AdGuardHome.FilteringApifilteringSetRulesPOST /filtering/set_rulesSet user-defined filter rules
AdGuardHome.FilteringApifilteringSetURLPOST /filtering/set_urlSet URL parameters
AdGuardHome.FilteringApifilteringStatusGET /filtering/statusGet filtering parameters
AdGuardHome.GlobalApibeginUpdatePOST /updateBegin auto-upgrade procedure
AdGuardHome.GlobalApicacheClearPOST /cache_clearClear DNS cache
AdGuardHome.GlobalApidnsConfigPOST /dns_configSet general DNS parameters
AdGuardHome.GlobalApidnsInfoGET /dns_infoGet general DNS parameters
AdGuardHome.GlobalApigetProfileGET /profile
AdGuardHome.GlobalApigetVersionJsonPOST /version.jsonGets information about the latest available version of AdGuard
AdGuardHome.GlobalApiloginPOST /loginPerform administrator log-in
AdGuardHome.GlobalApilogoutGET /logoutPerform administrator log-out
AdGuardHome.GlobalApimobileConfigDoHGET /apple/doh.mobileconfigGet DNS over HTTPS .mobileconfig.
AdGuardHome.GlobalApimobileConfigDoTGET /apple/dot.mobileconfigGet DNS over TLS .mobileconfig.
AdGuardHome.GlobalApisetProtectionPOST /protectionSet protection state and duration
AdGuardHome.GlobalApistatusGET /statusGet DNS server current status and general settings
AdGuardHome.GlobalApitestUpstreamDNSPOST /test_upstream_dnsTest upstream configuration
AdGuardHome.GlobalApiupdateProfilePUT /profile/updateUpdates current user info
AdGuardHome.I18nApichangeLanguagePOST /i18n/change_languageChange current language. Argument must be an ISO 639-1 two-letter code.
AdGuardHome.I18nApicurrentLanguageGET /i18n/current_languageGet currently set language. Result is ISO 639-1 two-letter code. Empty result means default language.
AdGuardHome.InstallApiinstallCheckConfigPOST /install/check_configChecks configuration
AdGuardHome.InstallApiinstallConfigurePOST /install/configureApplies the initial configuration.
AdGuardHome.InstallApiinstallGetAddressesGET /install/get_addressesGets the network interfaces information.
AdGuardHome.LogApigetQueryLogConfigGET /querylog/configGet query log parameters
AdGuardHome.LogApiputQueryLogConfigPUT /querylog/config/updateSet query log parameters
AdGuardHome.LogApiqueryLogGET /querylogGet DNS server query log.
AdGuardHome.LogApiqueryLogConfigPOST /querylog_configSet query log parameters
AdGuardHome.LogApiqueryLogInfoGET /querylog_infoGet query log parameters
AdGuardHome.LogApiquerylogClearPOST /querylog_clearClear query log
AdGuardHome.MobileconfigApimobileConfigDoHGET /apple/doh.mobileconfigGet DNS over HTTPS .mobileconfig.
AdGuardHome.MobileconfigApimobileConfigDoTGET /apple/dot.mobileconfigGet DNS over TLS .mobileconfig.
AdGuardHome.ParentalApiparentalDisablePOST /parental/disableDisable parental filtering
AdGuardHome.ParentalApiparentalEnablePOST /parental/enableEnable parental filtering
AdGuardHome.ParentalApiparentalStatusGET /parental/statusGet parental filtering status
AdGuardHome.RewriteApirewriteAddPOST /rewrite/addAdd a new Rewrite rule
AdGuardHome.RewriteApirewriteDeletePOST /rewrite/deleteRemove a Rewrite rule
AdGuardHome.RewriteApirewriteListGET /rewrite/listGet list of Rewrite rules
AdGuardHome.RewriteApirewriteUpdatePUT /rewrite/updateUpdate a Rewrite rule
AdGuardHome.SafebrowsingApisafebrowsingDisablePOST /safebrowsing/disableDisable safebrowsing
AdGuardHome.SafebrowsingApisafebrowsingEnablePOST /safebrowsing/enableEnable safebrowsing
AdGuardHome.SafebrowsingApisafebrowsingStatusGET /safebrowsing/statusGet safebrowsing status
AdGuardHome.SafesearchApisafesearchDisablePOST /safesearch/disableDisable safesearch
AdGuardHome.SafesearchApisafesearchEnablePOST /safesearch/enableEnable safesearch
AdGuardHome.SafesearchApisafesearchSettingsPUT /safesearch/settingsUpdate safesearch settings
AdGuardHome.SafesearchApisafesearchStatusGET /safesearch/statusGet safesearch status
AdGuardHome.StatsApigetStatsConfigGET /stats/configGet statistics parameters
AdGuardHome.StatsApiputStatsConfigPUT /stats/config/updateSet statistics parameters
AdGuardHome.StatsApistatsGET /statsGet DNS server statistics
AdGuardHome.StatsApistatsConfigPOST /stats_configSet statistics parameters
AdGuardHome.StatsApistatsInfoGET /stats_infoGet statistics parameters
AdGuardHome.StatsApistatsResetPOST /stats_resetReset all statistics to zeroes
AdGuardHome.TlsApitlsConfigurePOST /tls/configureUpdates current TLS configuration
AdGuardHome.TlsApitlsStatusGET /tls/statusReturns TLS configuration and its status
AdGuardHome.TlsApitlsValidatePOST /tls/validateChecks if the current TLS configuration is valid

Documentation for Models

:question: Get Help

For bug reports and feature requests, open issues. :bug:

:sparkling_heart: Support my projects

I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).

Thank you to all my backers!

People

Become a backer

However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:

  • Starring and sharing the projects you like :rocket:
  • PayPal    You can make one-time donations via PayPal. I'll probably buy a coffee tea. :tea:
  • ko-fi    I'll buy a tea coffee. :coffee: :wink:

Thanks! :heart:

:yum: How to contribute

Have an idea? Found a bug? See how to contribute.