Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend endpoints handlers #22

Open
7 tasks
yaqootturman opened this issue Aug 29, 2019 · 0 comments
Open
7 tasks

Backend endpoints handlers #22

yaqootturman opened this issue Aug 29, 2019 · 0 comments

Comments

@yaqootturman
Copy link
Collaborator

  • fetchMedicinsDescription Handler
    fetch

  • listPharmacies Handler
    use getPharmacies() query to get all pharmacies contain medicine

  • login Handler
    Hash password
    compare password and user with data by checkAuth handler
    Set cookies

  • getMedicine Handler
    get medicine info in specific pharmacy by getMedicine() query

  • updateMedicine Handler
    PATCH data by updateMedicine() query

  • PostMedicine Handler
    check of medicine exist or not from external api
    check if medicine exits in medicine table, if it doesnt then
    use postMedicine() query to post data to medicine table
    then post to the medicine_to_pharmacy table using the medicineToPharmacy() query

  • checkAuth Handler
    check cookies exist or not

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

No branches or pull requests

2 participants