-
Notifications
You must be signed in to change notification settings - Fork 7
Database Operation Visuals
0NotApplicable0 edited this page Apr 28, 2021
·
5 revisions
Please see https://github.com/DangItJason/TutorBase/wiki/TutorBase-Internal-API-Endpoints for an updated list!
- 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
- 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.
- 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