April 23, 2019

Django Rest Framework: Multiple post

I need to have a massive put in my rest endpoint and Django Rest Framework doesn’t do it. So I make my personal method for mycase.

You need to follow the tutorial from the official documentation of Django Rest Framework   .

After this you have a MyModel, MyModelSerializer and a view class MyModelListPost.

After you did the tutorial you have a base for a standard Django Rest Framework. This mean that you have only a get massive not an update massive. So we make one from scratch.