Open otabek-olimjonov opened 1 week ago
It is supported on the CRUD level with schema_to_select
parameter, but not in the router itself, which is still a bit underdeveloped. It should be added to EndpointCreator and passed here. Should be fairly simple, feel free to open a PR with that, otherwise we'll work on that later on!
It would be great to include response model in crud_router like
users_router = crud_router( session=get_session, model=User, create_schema=schemas.UserCreate, update_schema=schemas.UserUpdate, response_schema=schemas.UserResponse ## this feature request )