Verificar readiness
curl --request GET \
--url https://api-bc.pgubright.com/readyconst options = {method: 'GET'};
fetch('https://api-bc.pgubright.com/ready', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-bc.pgubright.com/ready"
response = requests.get(url)
print(response.text){
"status": "ok"
}{
"message": "Usuário sem permissão para operar neste sensor.",
"code": "SENSOR_FORBIDDEN"
}Saúde
Verificar readiness
GET
/
ready
Verificar readiness
curl --request GET \
--url https://api-bc.pgubright.com/readyconst options = {method: 'GET'};
fetch('https://api-bc.pgubright.com/ready', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-bc.pgubright.com/ready"
response = requests.get(url)
print(response.text){
"status": "ok"
}{
"message": "Usuário sem permissão para operar neste sensor.",
"code": "SENSOR_FORBIDDEN"
}Response
Dependências disponíveis.
Example:
"ok"
