cloudant / nodejs-cloudant

Cloudant Node.js client library
Apache License 2.0
255 stars 90 forks source link

how to check if cloudant is up and ready something similar to /_up #446

Closed hmdevelopermind closed 3 years ago

hmdevelopermind commented 3 years ago

is there any way I can check if cloudant is up and running using this cloudant module something similar to

await axios.get(https://username:password@mycouchdomainurl/_up); ?

bessbd commented 3 years ago

Hi @hamedminaee ,

What do you think about the ping() function?

hmdevelopermind commented 3 years ago

@bessbd Nice I assume it is the same as _up? and it is not an expensive call?

hmdevelopermind commented 3 years ago

I confirm it is working thanks