Blocklist - Implement CRUD on `/user/me/blocklist/numbers`

Description

Implement the CRUD operations for the /users/me/blocklist/numbers endpoint to manage the blocklist feature in Wazo. This task involves developing the backend logic to handle Create, Read, Update, and Delete operations on phone numbers for end-users.

Job to be Done:

  1. CRUD Operations:

    • POST/PUT Validate the input to ensure the phone number is in the correct format (+E.164)

      • Validation to limit to 1000 numbers per user

    • DELETE Ensure the operation is idempotent and handles cases where the number does not exist.

    • GET Users can see blocked numbers he added

      • Filter to find a matched number

  2. Documentation:

    • Update the API documentation to include the new /users/me/blocklist/numbers endpoint.

    • Provide examples of requests and responses for each CRUD operation.

  3. Integration Testing

    • Perform integration testing that the blocklist feature works as expected

    • Write a performance test with 30 000 blocked numbers (3000 users with 10 numbers each).

Zendesk Ticket IDs

None

Activity

Show:
Done

Details

Priority

Assignee

Reporter

Approvers

Sébastien Duthil

Story Points

Zendesk Support

Created February 21, 2025 at 8:54 PM
Updated 4 days ago
Resolved 4 days ago