-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
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
RESTful API: GET /dhcp/interfaces respond Content-Type as text/plain rather than application/json #5716
Comments
I also find other API respond wrong Content-Type:
Maybe there are more wrong API responds, I will check them when I available |
I tested most APIs, and seems only the two APIs are wrong |
@sky96111, thanks for reporting and investigating! This should be fixed in the most recent Edge build. Could you please check? |
Thanks for your fix! Now /dhcp/interfaces respond right Content-Type. While seems /control/version.json still respond as text/plain
|
You are correct, and it seems like there were two bugs here. The latest Edge build, v0.108.0-a.540+757ddb06, should fix that one as well. |
Great! It now work correctly! |
Hello, I would like to call/ trigger Adguard service from Home Assistant. e.g. turn ON/OFF Youtube blocking for my kids. I did see this page but it is beyond my comprehansion , could you help me here with a clue how to get the Restful API call link? |
You can clone this repo and run command below
in Then surfing http://localhost:4000/#tag/blocked_services for detailed API for blocked_services. To set YouTube in blocked_service, you should use method: [
"youtube"
] If success, it respond 200 OK
|
thank you @sky96111 , I` running AdGuard Home in LXC container on Proxmox using Alpine Linux. |
@Vendo232 You'd better to open up another new Discussion https://github.com/AdguardTeam/AdGuardHome/discussions . |
Prerequisites
I have checked the Wiki and Discussions and found no answer
I have searched other issues and found no duplicates
I want to report a bug and not ask a question
Operating system type
Linux, Other (please mention the version in the description)
CPU architecture
AMD64
Installation
GitHub releases or script from README
Setup
On one machine
AdGuard Home version
v0.108.0-b.33
Description
What did you do?
Expected result
respond
Actual result
respond
Screenshots (if applicable)
Additional information
The text was updated successfully, but these errors were encountered: