Discussion:
Testing promo codes api Help
Mary Musimire
2018-06-16 09:28:26 UTC
Permalink
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.
--
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.
Mary Musimire
2018-06-16 09:48:28 UTC
Permalink
Post by Mary Musimire
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 to test the
validity of the promo code:To test the validity of the promo code, expose
an endpoint that accept origin, destination,
the promo code. The api should return the promo code details and a
polyline using the
destination and origin if promo code is valid and an error otherwise.
How can i best implement this using django rest framework
--
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.
Loading...