Some (less opinionated than me) people might refer you here:
https://martinfowler.com/articles/richardsonMaturityModel.html where he
still allows method calls.

But bear in mind that DRFs Model-based serializers implement CRUD via POST,
GET, PUT/PATCH, and DELETE). JSONAPI.org is a good strict REST design. See
the Django-restframework-jsonapi package.


On Tue, Feb 5, 2019 at 7:54 AM Alan Crosswell <[email protected]> wrote:

> SOAP-style remote method invocation is not RESTful. In REST, resources are
> nouns and the only verbs are the HTTP methods — GET, POST, PUT, PATCH,
> DELETE, etc. you’ll want to trigger actions in your views or models based
> on values of the resources. See
>
> https://columbia-it-django-jsonapi-training.readthedocs.io/en/latest/rest.html
>
>
> On Tue, Feb 5, 2019 at 4:56 AM Jan Krňávek <[email protected]> wrote:
>
>> Hello everybody,
>> i need to  call remote method and i want to pass in parameters and  to
>> get response, all  in json format.
>>
>> Suppose i  have an endpoint * /api/actions*  and will POST  
>> *{"action":"do_some_cals",
>> "param1":"111","param2":"222"}*
>> and will get reponse *{ "result":"333"}*
>>
>> There will be no model for any methods
>>
>> How can i do this in  DRF , is there better way, how to design calling
>> methods in DRF?
>>
>> Thank you in advance for help.
>> Hanz
>>
>> --
>> 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.
>>
> --
> Alan Crosswell
> Associate VP & CTO
>
> --
Alan Crosswell
Associate VP & CTO

-- 
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.

Reply via email to