Home
|
About
|
Blog
|
Resume
|
Jumping Ball
|
Jumping Square
|
URL Shortener
Blog
Add New Post
Title:
Content (Markdown supported):
Date Published:
Post to 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)