On Fri, Feb 8, 2019 at 1:10 PM Jan Krňávek <[email protected]> wrote:
> If anybody cares, here is my solution. I POST
> {'action':'calc','args':{'arg1':1,'arg2':2}} into endpoint
> /api/customers/action for an execution. An advantage for me is that i can
> use robust DRF infrastructure.
>
> Any ideas for improvement are welcome.
>
This looks really clean / solid to me and definitely an improvement over a
more naive function-based approach I had mentioned.
Thanks for posting what you came up with!
- Sanjay
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.