We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The API answers will change in the near future. Please have a look at pi-hole/web#408
We can add something like api.php?version which will either respond with PHP or FTL if you like.
api.php?version
PHP
FTL
The text was updated successfully, but these errors were encountered:
Yes, that could be great thank you.
I will obviously adapt my app to use the new API version when it will be available.
Sorry, something went wrong.
http://pi.hole/admin/api.php?type
Currently:
[]
FTL-integration branch:
{"version":"FTL"}
FTL-integration branch, FTL not running (fallback mode):
{"version":"PHP"}
pi-hole/web@e3d791a
Have a look at
https://discourse.pi-hole.net/t/pi-hole-api/1863
As of web v2.5 you can already use these keywords for detecting what to do:
v2.5
http://pi.hole/admin/api.php?version -> {"version":2} http://pi.hole/admin/api.php?version&type -> {"type":"PHP","version":2}
http://pi.hole/admin/api.php?version
{"version":2}
http://pi.hole/admin/api.php?version&type
{"type":"PHP","version":2}
etc.
f3c6bb5
No branches or pull requests
The API answers will change in the near future.
Please have a look at pi-hole/web#408
We can add something like
api.php?version
which will either respond withPHP
orFTL
if you like.The text was updated successfully, but these errors were encountered: