Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

REST documentation #75

Open
Triple1090 opened this issue Jun 6, 2021 · 4 comments
Open

REST documentation #75

Triple1090 opened this issue Jun 6, 2021 · 4 comments

Comments

@Triple1090
Copy link

Is there a public documentation of the Impfportal-API? I was not able to find it.

@duracotton
Copy link

duracotton commented Jun 7, 2021

@sibalzer I am also interested on how the REST API and also the json structure/fields ("outOfStock / freeSlotSizeOnline / vaccineName / vaccineType" which the impfbot.py is checking) have been found out.
Thanks :)

E: Just inspecting the impfportal main page is enough, there's a GET request which we can use to evaluate.

@sibalzer
Copy link
Owner

sibalzer commented Jun 7, 2021

Unfortunately there is no public documentation. F12 is your friend.

https://www.impfportal-niedersachsen.de/portal/rest/appointments/findVaccinationCenterListFree/{plz}

There are 3 parameters:
stkio: no idea for what is alway empty
count: used for groupsize; default 1
birthdate: unix timestamp in ms

@Aletho
Copy link

Aletho commented Jun 8, 2021

Looks like it's obsolete since there are no more priorities.

getVacctionationcenterFree(e, t, i, n) {
    let a = new C.f;
    return a = a.append("stiko", t),
    i && (a = a.append("count", i)),
    n && (a = a.append("birthdate", n)),
    this.ajaxService.ajaxGET("rest/appointments/findVaccinationCenterListFree/" + e, {}, {
        params: a
    })
}

indicationSTIKO() {
    return !0
}

indicationSTIKONoAge_Obsolate() {
    return this.calcAge() >= 70 && this.calcAge() <= 120 || this.customer.jobIndication || this.customer.medicalIndication || this.customer.vaccinationPermit || this.customer.carecenterIndication
}

getStikoCode(e) {
    let t = "";
    return e.ageIndication && (t += "A"),
    e.jobIndication && (t += "J"),
    e.medicalIndication && (t += "M"),
    t
}

@sibalzer
Copy link
Owner

sibalzer commented Jun 8, 2021

🤷

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants