Mary Musimire
2018-06-16 09:28:26 UTC
I'm new to django rest framework. I recently created an api to create
voucher/promo codes for free rides e.g uber rides and return them. This is
basic enough. However, i am required to provide an endpoint where the
code, origin and destination .of a user are entered and return a result of
whether the code is valid or not. How can i implement this, getting that
input that isn't in a model and returning the result.
voucher/promo codes for free rides e.g uber rides and return them. This is
basic enough. However, i am required to provide an endpoint where the
code, origin and destination .of a user are entered and return a result of
whether the code is valid or not. How can i implement this, getting that
input that isn't in a model and returning the result.
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.