Skip to content

Database Operation Visuals

0NotApplicable0 edited this page Apr 28, 2021 · 5 revisions

API Operations (NOTE THAT API OPERATIONS HAVE CHANGE SIGNIFICATLY SPRING 2021)

Please see https://github.com/DangItJason/TutorBase/wiki/TutorBase-Internal-API-Endpoints for an updated list!

Features

  1. Provide tutor and client w/ appointment information
  • Client hits book.

  • Send POST req. w/ stored local tutor data to server. Update DB.

  • Send POST req. w/ stored local client data to server. Update DB.

  • Send back success/error code(s).

  • Send GET req. To server to send (email/text) notification to client and tutor

  1. Load tutor and client dashboard w/ appointment information
  • Send GET req. to get appointment data on tutor (if on tutor dashboard)

  • Send GET req. To get appointment data on client (if on client dashboard meetings tab)

  • Use grabbed data to load into components before rendering.

  1. UI Flow

Two ways to approach this..

  • (1) Single get req. -> return all OBJ.

Approach (1) is simpler at a smaller scale

  • (2) Iterative get req at each UI step -> return within single depth.

Approach (2) is more scalable