問題文
A developer opens the main flow that scaffolding generated for a REST API implementation. Which arrangement of components does that flow contain?
選択肢
- An HTTP Listener followed directly by the implementation logic.
- An HTTP Listener, the APIkit Router, and one Choice router per resource that inspects the request path and calls the matching implementation flow, because the router itself only performs validation and leaves the dispatch to the flow author.
- A Scheduler and the APIkit Router, so that the API can also be exercised on a fixed timer with no incoming request arriving.
- An HTTP Listener, then the APIkit Router, plus an error handler that maps the router's error types onto HTTP status codes.