-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question]How about leveraging djangorestframework serializer from models to json to protobuf? #22
Comments
I think you can build an extension (middleware) on the top of django rest framework that would use ParseDict to convert JSON generated by DRF to protobuf. There is special flag that can help you to map properties with different field name called "json_name" flag:
|
Thanks for the immediate response Stan. |
you can write like this, this code is copy from https://github.com/socotecio/django-socio-grpc
|
Experts,
Please let me know, if I am going in right direction?
If not provide some examples on using grpc serializers.
Thank you in advance
The text was updated successfully, but these errors were encountered: