Skip to content

feat: implement add users to an organisation.#689

Merged
Am0du merged 3 commits intohngprojects:devfrom
HNG-12:teibeina-add-members-to-org
Mar 2, 2025
Merged

feat: implement add users to an organisation.#689
Am0du merged 3 commits intohngprojects:devfrom
HNG-12:teibeina-add-members-to-org

Conversation

@aniebietafia
Copy link
Contributor

Resolves #680
Developed an endpoint that allows user to add other users to organization created by them. A Post request available at POST /api/v1/organizations/{org_id}/users.

Changes implemented

  • Implemented a AddUsersToOrganisationService class in the organisation package.
  • Defined AddUserRequest and AddUserResponse Dtos.
  • Wrote unit tests in the AddUsersToOrganisationServiceTest class.
  • Added a controller.

Screenshots from Postman

2025-02-28 (9)
2025-02-28 (10)
2025-02-28 (11)
2025-02-28 (12)

Copy link
Contributor

@Am0du Am0du left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check codebase to see how exceptions are managed

@aniebietafia aniebietafia requested a review from Am0du February 28, 2025 21:43
@aniebietafia aniebietafia force-pushed the teibeina-add-members-to-org branch from 217bda7 to f12b383 Compare March 1, 2025 13:33
@aniebietafia aniebietafia requested a review from Am0du March 1, 2025 13:37
@Am0du Am0du merged commit e7df036 into hngprojects:dev Mar 2, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] Add Users to Organizations API

2 participants