[Answered ]-Post Object or array of Objects to API

2👍

Django REST Framework does not support bulk object creation by default, but there are packages out there that add support for it, such as Django REST Framework Bulk.

It can be made to work with routers with slight modifications. This should allow you to do what you are looking for.

because of that I lose the serializer validation for other purposes like field validations.

This is because you were not passing in the serializer context, which generic views do automatically.

Leave a comment