ak146 / FunnyBlog2.0

personal blog for AP CSP
MIT License
1 stars 0 forks source link

quiz #4

Open ak146 opened 5 months ago

ak146 commented 5 months ago

database, with database schema change

Show db.Column changes you have made to model/python file in Visual Studio Code

Screenshot 2024-01-31 at 11 24 19 AM

Show initialization data code in VSCode ![301281280-3f66ad87-98f5-44e7-ae0e-2de57c8de8dc]

Screenshot 2024-02-01 at 10 04 06 AM

(https://github.com/ak146/FunnyBlog2.0/assets/142758261/ea337f7d-1618-4226-92ee-b2696751570a) Demo delete database and run ./migrate.sh

Screenshot 2024-02-01 at 10 05 12 AM

Demo corresponding schema change in SQLite3 Demo initialization data captured in Column in SQLite3 postman with /authentication screen

Screenshot 2024-02-01 at 10 13 33 AM

Show /authenticate endpoint code in Visual Studio Code sd

Show and Demo /authenticate in Postman…

Screenshot 2024-02-01 at 10 54 42 AM

Demo calling to endpoint Show JSON data passed in call Show Response window Show Cookie acquired window

Screenshot 2024-02-01 at 10 42 41 AM

Cut/Copy/Paste Cookie into jwt.io and show decrypting payload postman with /api screen to access data under authentication

Show /api CRUD code in Visual Studio Code, expecting READ/GET code Show and Demo /api READ/GET endpoint in Postman… Demo calling to endpoint that requires Cookie Show Response/Data Demo Deleting cookie

Screenshot 2024-02-01 at 10 42 41 AM

Demo calling endpoint again Show Response/Failure

Q:1

Screenshot 2024-01-31 at 11 04 43 AM Screenshot 2024-01-31 at 11 05 07 AM Screenshot 2024-01-31 at 11 06 03 AM Screenshot 2024-01-31 at 11 08 03 AM Screenshot 2024-01-31 at 11 08 41 AM Screenshot 2024-01-31 at 11 10 25 AM Screenshot 2024-01-31 at 11 10 58 AM

<img width="501" alt="Screenshot 2024-01-31 at 11 19 01 AM" 0.7

Q:2 src="https://github.com/ak146/FunnyBlog2.0/assets/142758261/1254c0ef-cf57-48f6-a604-ce1e67332317">

Screenshot 2024-01-31 at 11 24 19 AM Screenshot 2024-01-31 at 11 25 34 AM
jm1021 commented 5 months ago

database section is confusing and as it shows api code which is not involved in process requested. api sections look more complete