Closed mikhaillazko closed 5 years ago
@winter.route_post('/') @winter.request_body('dtos') def create(self, account: Account, dtos: List[DTO]): pass
In some cases, we want to send a simple array of objects. It looks like normal, but currently, I need to create additional DTO with a named argument that change API contract. I can't rewrite old API without breaking changes.
In some cases, we want to send a simple array of objects. It looks like normal, but currently, I need to create additional DTO with a named argument that change API contract. I can't rewrite old API without breaking changes.