2 ms·
The decorator for body params reminds me a bit of Spring's @RequestBody annotation. However, fastapi manages this without a decorator, only a type hint. Is the
by matsemann 3y ago
The decorator for body params reminds me a bit of Spring's @RequestBody annotation.
However, fastapi manages this without a decorator, only a type hint. Is there any gain doing it like this?
- lozenge 3y agoIt's nice to have explicit demarcation whether the parameter is coming in from the query string or request body.