I enabled the
|
||Controller Api REST/JSON Read-Write [ctrlApiRest0]|
http://x:admin@localhost:8084/rest/channel/meter0
And I get,
{
“jsonrpc”: “2.0”,
“id”: “00000000-0000-0000-0000-000000000000”,
“error”:{
“code”: 1003,
“message”: “Authentication failed”,
“data”:[]
}
}
Is is something wrong on my implementation?
Thank you
Hi.
the code looks good. How are you sending the request? Just to be sure, that you are not actually passing the credentials in the URL - which is deprecated and not recommended - but via the HTTP Authorization header.
See this discussion for example:
My recommendation to test the request is via this browser addon:
Regards,
Stefan
yes, with the API tester works.
Many thanks!