Hi Tango dancers! and Happy 2020!
I was recently trying the REST API and I found in the documentation:
https://tango-controls.readthedocs.io/en/latest/development/advanced/rest-api.html#deployment
a mention about the ESRF REST API. Is it supposed to work?
I’m trying:
curl -u “tango-cs:tango” https://mstatus.esrf.fr/tango/rest
and I get HTTP Status 401 – Unauthorized
HTTP Status 401 – Unauthorizedh1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}
HTTP Status 401 – Unauthorized
Type Status Report
Description The request has not been applied because it lacks valid authentication credentials for the target resource.
Apache Tomcat/9.0.14
While when testing it on my REST server instance I get:
curl -u “tango-cs:tango” http://localhost:10001/tango/rest
{“rc4”:“http://localhost:10001/tango/rest/rc4",“v10”:"http://localhost:10001/tango/rest/v10”}
Cheers,
Zibi