Skip to content

seeyIT/swiftuijam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend part of the main application BookMyVaccine prepred for SwiftUIJam

API address: https://swiftuijam.herokuapp.com/

Endpoints:

Part related to handle registration to be vaccinated

  1. /slots/:hospitalName [GET]
    Endpoint returns all slots for needed hospital
    Params:
  • hospitalName: String
  1. /appointments/:userId [GET]
    Endpoint returns appointments for user ID
    Params:
  • userId: String
  1. /bookAppointment [POST]
    Endpoint books appointment and returns its uuid if slot is free
    Params needed:
  • userId: String
  • hospitalName: String
  • timeSlot: String
  1. /addHospital [POST]
    Endpoint creates new hospital
    Params needed:
  • hospitalName: String
  1. /clearSlotsData [GET]
    Util endpoint to clear database records

  2. /clearAppointmentsData [GET]
    Util endpoint to clear database records

Part related to fetch data related to numbers of vaccinations in different countries

  1. /newestData/:countryName [GET]
    Endpoint returns the newest statistics for the country selected in request parameters
    Params needed:
  • countryName: String
  1. /allData/:countryName [GET]
    Endpoint returns the all statistics for some country selected in request parameters
    Params needed:
  • countryName: String

Database schema:

hosital_slots table

  • hospital_name [String]
    The name of hospital
  • slots [Dictionary<String, String>]
    List of the possible slots. Each slot has two values free or value of uuid
    If it's free then it's possibe to book appointment for that time otherwise it's uuid of appoitment.

appointment table

  • uuid [String]
    This uuid is the same as in hospital_slots table.
  • user_id [String]
  • hospital_name [String]
  • time_slot [String]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published