magistrala icon indicating copy to clipboard operation
magistrala copied to clipboard

NOISSUE - Reject an invitation

Open SammyOina opened this issue 1 year ago • 1 comments

What type of PR is this?

This is a Feature as it adds the ability to reject invitations.

What does this do?

  • New Features

    • Users can now reject invitations to join a domain through a new endpoint.
    • The invitation management system now tracks when an invitation is rejected.
  • Bug Fixes

    • Updated response handling for invitation acceptance to better reflect the status of operations.
  • Tests

    • Added comprehensive test cases for the new invitation rejection functionality.
  • Documentation

    • Updated API specifications to include the new rejection endpoint and its response codes.
sequenceDiagram
    participant User
    participant API
    participant Service
    participant Repository

    User->>API: POST /invitations/reject
    API->>Service: RejectInvitation(token, domainID)
    Service->>Repository: UpdateRejection(invitation)
    Repository-->>Service: Update successful
    Service-->>API: 204 No Content
    API-->>User: Invitation rejected confirmation

Which issue(s) does this PR fix/relate to?

None

Have you included tests for your changes?

Yes, I have added tests

Did you document any new/modified feature?

Yes I have updated api docs

Notes

SammyOina avatar Aug 09 '24 14:08 SammyOina