Will I need to create separate HTTP methods(POST, PUT, DELETE) for ManyToManyField Operations - Django DRF
I am having two tables group and action.
class Group(models.Model):
name = models.CharField()
action = models.ManyToManyField(Action)
class Action(models.Model):
name = models.CharField()
I have pre-defined data inserted into Group and Action table.
My requirement is that, When I want to map Group table into Action table (Say for example "Mapping group to action(inserting to many to many table)","removing existing group to action mapping" ) I need to create Separate HTTP request for these Operation (POST, PUT, DELETE) or For single HTTP request(PUT) I can do these operations.
Kindly help me on that.