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

Vaccinator API mocking #413

Closed krsharath closed 3 years ago

krsharath commented 3 years ago
  1. POST API /v2/vaccinator/onspots/schedule The body needs a session-id.
    How can I mock session-id here?

Without this, I get invalid slot ID error {"errorCode":"APPOIN0015", "error":"Invalid Slot Id"}

  1. ​POST /v2​/vaccinator​/beneficiaries​/vaccinate The body needs center_id and vaccine_batch How can I mock these values?

Without this, I get below error { "errorCode": "GERR001", "error": "Something Went wrong!" }

jigarjain709 commented 3 years ago

Hey I am facing a similar issue as your point 1 my error is For POST API /v2/vaccinator/onspots/schedule {"errorCode":"APPOIN0047", "error":"Name of individual is required!"}

For POST /v2​/vaccinator​/beneficiaries​/vaccinate { "errorCode": "GERR001", "error": "Something Went wrong!" }

@cowinapi Do we have a list of error codes and their meaning?

@krsharath, 1 . You can get the session id from https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id=395&date=10-06-2021.