요청 내용
“Create a post-creation API flowchart: parse and validate a JSON request, authenticate and rate-limit it, sanitize the content, create the post in the database, notify followers through a queue, and return the post ID or an error.”
그렇다면Add image upload validation before database storage.Add a moderation review path for flagged content.
이 도면에 담긴 내용
그 이면의 의사결정을 읽어 보세요.
01
Validate input and return 422 on invalid payload
02
Check authentication and return 401 if missing or invalid
03
Enforce rate limiting and return 429 when exceeded
04
Commit post to database and return 201 with ID or 500 on failure
Reuse when designing or documenting REST API endpoints that create user-generated content and require validation, rate limiting, and persistence error handling.