依頼内容
“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.