cowinapi / developer.cowin

This group is created to facilitate technical and integration discussions related to cowin platform. API related contents can be obtained at API setu portal https://apisetu.gov.in/public/marketplace/api/cowin
115 stars 30 forks source link

Discrepancy in `available_capacity` JSON field #234

Open tanmoy1994 opened 3 years ago

tanmoy1994 commented 3 years ago

I get the following data from an API query, which seems incorrect:

{
   "center_id":561872,
   "name":"Apollo Gleneagles Kolkata",
   "address":"58 Canal Cirucular Road Kolkata 700054",
   "state_name":"West Bengal",
   "district_name":"Kolkata",
   "block_name":"Borough-III",
   "pincode":700054,
   "lat":22,
   "long":88,
   "from":"09:00:00",
   "to":"18:00:00",
   "fee_type":"Paid",
   "sessions":[
      {
         "session_id":"f5e7920e-f8e0-41ac-9d8e-f4f261dfd6c0",
         "date":"17-05-2021",
         "available_capacity":4,
         "min_age_limit":18,
         "vaccine":"COVISHIELD",
         "slots":[
            "09:00AM-11:00AM",
            "11:00AM-01:00PM",
            "01:00PM-03:00PM",
            "03:00PM-06:00PM"
         ],
         "available_capacity_dose1":0,
         "available_capacity_dose2":0
      },
      {
         "session_id":"34fd2112-04fd-4fbc-aa50-15c06ffb1e4f",
         "date":"18-05-2021",
         "available_capacity":0,
         "min_age_limit":18,
         "vaccine":"COVISHIELD",
         "slots":[
            "09:00AM-11:00AM",
            "11:00AM-01:00PM",
            "01:00PM-03:00PM",
            "03:00PM-06:00PM"
         ],
         "available_capacity_dose1":0,
         "available_capacity_dose2":0
      },
      {
         "session_id":"549f4e8b-4904-4291-949e-758e708dc1a4",
         "date":"19-05-2021",
         "available_capacity":0,
         "min_age_limit":18,
         "vaccine":"COVISHIELD",
         "slots":[
            "09:00AM-11:00AM",
            "11:00AM-01:00PM",
            "01:00PM-03:00PM",
            "03:00PM-06:00PM"
         ],
         "available_capacity_dose1":0,
         "available_capacity_dose2":0
      },
      {
         "session_id":"3cc0080d-254f-4065-8cad-81bb1279f1c9",
         "date":"20-05-2021",
         "available_capacity":9,
         "min_age_limit":18,
         "vaccine":"COVISHIELD",
         "slots":[
            "09:00AM-11:00AM",
            "11:00AM-01:00PM",
            "01:00PM-03:00PM",
            "03:00PM-06:00PM"
         ],
         "available_capacity_dose1":0,
         "available_capacity_dose2":0
      },
      {
         "session_id":"d3afdea9-2883-4645-8e88-db1300a49864",
         "date":"21-05-2021",
         "available_capacity":0,
         "min_age_limit":18,
         "vaccine":"COVISHIELD",
         "slots":[
            "09:00AM-11:00AM",
            "11:00AM-01:00PM",
            "01:00PM-03:00PM",
            "03:00PM-06:00PM"
         ],
         "available_capacity_dose1":0,
         "available_capacity_dose2":0
      },
      {
         "session_id":"9809e1ca-3855-48bf-bca3-7f65dca6c758",
         "date":"22-05-2021",
         "available_capacity":0,
         "min_age_limit":18,
         "vaccine":"COVISHIELD",
         "slots":[
            "09:00AM-11:00AM",
            "11:00AM-01:00PM",
            "01:00PM-03:00PM",
            "03:00PM-06:00PM"
         ],
         "available_capacity_dose1":0,
         "available_capacity_dose2":0
      }
   ],
   "vaccine_fees":[
      {
         "vaccine":"COVISHIELD",
         "fee":"850"
      }
   ]
}

Note that although available_capacity is non-zero, available_capacity_dose1 and available_capacity_dose2 are 0 for all sessions.

amanjain325 commented 3 years ago

They have deployed it yesterday with this change and As per observation, This is a bug

Ashutosh-Karmakar commented 3 years ago

how we get can get rid of this bug????????????

amanjain325 commented 3 years ago

It will be done by them only.