☰
Debian Codegraph
@
2.24.0-1
/
/
docs
/
examples
/
data_transfer_objects
/
the_dto_parameter.py
☽
☼
docs/examples/data_transfer_objects/the_dto_parameter.py
code
plain
raw
Expat
Alc <
[email protected]
>,; Cody Fincher <
[email protected]
>,; Jacob Coffee <
[email protected]
>,; Janek Nouvertné <
[email protected]
>,; Litestar Developers <
[email protected]
>,; Peter Schutt <
[email protected]
>,; Visakh Unnikrishnan <
[email protected]
>,
debian/copyright
1
from litestar import post
2
3
from .models import User, UserDTO
4
5
6
@post(dto=UserDTO)
7
def create_user(data: User) -> User:
8
return data