Home | About | Blog | Resume | Jumping Ball | Jumping Square | URL Shortener

Blog

Loading posts...

System Design

Blog System Architecture Browser (Client) FastAPI Backend Python / SQLAlchemy SQLite DB (blog.db) blog_posts comments · users GET /api/blog posts (JSON) query / delete records Comments (Public read/write) POST .../comments GET .../comments JWT Auth Admin-only writes/deletes POST /api/blog DELETE /api/blog/{id} DELETE .../comments/{id} Read / Comment: public · Create Post / Delete Post & Comments: admin JWT token required API Endpoints GET /api/blog ......................... list posts (public) POST /api/blog ......................... create post (admin) DEL /api/blog/{id} .................... delete post (admin) POST .../comments ...................... add comment (public) DEL .../comments/{id} ................. delete comment (admin)