API → Flow Diagram
Describe the steps in plain text using the small syntax below and get a Mermaid flowchart. This is intentionally not a free-form diagram parser -- ASCII-art arrows are ambiguous without a human reading them, so the syntax is explicit instead of guessed at.
Syntax: one step per line. A line ending in
? becomes a decision. Indented lines right under it, shaped Label -> Step, are its branches -- add [end] to a branch to stop it from rejoining the flow.
POST /customer Validate token Validate request Customer exists? Yes -> Fetch from Database No -> Return 404 [end] Transform Data Return HTTP 200