Готов принимать трафик
GET
/health/ready
const url = 'https://api.rekassa.uz/health/ready';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.rekassa.uz/health/readyПроверяет базу данных; 503, если она недоступна.
Responses
Заголовок раздела « Responses »The Health Check is successful
Media typeapplication/json
object
status
string
info
object
key
additional properties
object
status
required
string
responseTime
Time the health indicator took to respond, in ms
number
key
additional properties
any
error
object
key
additional properties
object
status
required
string
responseTime
Time the health indicator took to respond, in ms
number
key
additional properties
any
details
object
key
additional properties
object
status
required
string
responseTime
Time the health indicator took to respond, in ms
number
key
additional properties
any
Example
{ "status": "ok", "info": { "database": { "status": "up", "responseTime": 12 } }, "error": {}, "details": { "database": { "status": "up", "responseTime": 12 } }}The Health Check is not successful
Media typeapplication/json
object
status
string
info
object
key
additional properties
object
status
required
string
responseTime
Time the health indicator took to respond, in ms
number
key
additional properties
any
error
object
key
additional properties
object
status
required
string
responseTime
Time the health indicator took to respond, in ms
number
key
additional properties
any
details
object
key
additional properties
object
status
required
string
responseTime
Time the health indicator took to respond, in ms
number
key
additional properties
any
Example
{ "status": "error", "info": { "database": { "status": "up", "responseTime": 12 } }, "error": { "redis": { "status": "down", "message": "Could not connect", "responseTime": 3005 } }, "details": { "database": { "status": "up", "responseTime": 12 }, "redis": { "status": "down", "message": "Could not connect", "responseTime": 3005 } }}