Open susilnem opened 5 months ago
The 'lead bulk delete' features uses a Rest API.
The 'Lead' feature works with a graphql mutation.
https://github.com/the-deep/server/blob/bbfdef24fa80f04a046cca7f957297adc534ba15/apps/lead/views.py#L257-L265 The existing api doesnot contain any Serializer.
method: POST url: api/v1/project/<projectID>/leads/bulk-delete/ request payload: { "leads": ["72","43"] }
mutation MyMutation ($projectId: ID! $input: [ID!]) { project(id: $projectId) { leadBulk(deleteIds: $input) { errors deletedResult : BulkLead } } }
Problem Statement
The 'lead bulk delete' features uses a Rest API.
Acceptance Criteria
The 'Lead' feature works with a graphql mutation.
Existing
https://github.com/the-deep/server/blob/bbfdef24fa80f04a046cca7f957297adc534ba15/apps/lead/views.py#L257-L265 The existing api doesnot contain any Serializer.
Rest Framework urls
Purposed