Project

General

Profile

User story #9976

Updated by François ARMAND over 7 years ago

We would like to add a new api endpoint for the inventory application spec as follow:  

 GET /api/info 

 And answer:  

 - if the queue is not saturated: HTTP status 200 ok 

 <pre> 
 { 
   "queueMaxSize": 200, "200", 
   "queueFillCount": 89, "89", 
   "queueSaturated": false "false" 
 } 
 </pre> 

 - if the queue is saturated: HTTP status 429 too many requests 

 <pre> 
 { 
   "queueMaxSize": 200, "200", 
   "queueFillCount": 200, "200", 
   "queueSaturated": true "true" 
 } 
 </pre> 

Back