[PR #1416] [MERGED] feat: add team user management endpoints to api #1617

Closed
opened 2026-02-26 19:34:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1416
Author: @Mythie
Created: 10/22/2024
Status: Merged
Merged: 10/22/2024
Merged by: @Mythie

Base: mainHead: feat/user-management-api


📝 Commits (6)

  • c626ab2 feat: add team user management endpoints to api
  • 31e7d17 fix: add tests
  • 9d10589 fix: update tests
  • 31efb00 chore: update implementation and tests
  • 9a05251 chore: implement feedback
  • 1ded9a9 chore: updates from tests

📊 Changes

10 files changed (+666 additions, -10 deletions)

View changed files

📝 packages/api/v1/contract.ts (+61 -0)
📝 packages/api/v1/implementation.ts (+274 -1)
📝 packages/api/v1/schema.ts (+39 -0)
packages/app-tests/e2e/api/v1/team-user-management.spec.ts (+278 -0)
📝 packages/app-tests/package.json (+3 -3)
📝 packages/lib/server-only/public-api/create-api-token.ts (+1 -1)
📝 packages/lib/server-only/public-api/delete-api-token-by-id.ts (+1 -2)
📝 packages/lib/server-only/public-api/get-all-user-tokens.ts (+1 -0)
📝 packages/lib/server-only/public-api/get-api-token-by-token.ts (+7 -2)
📝 packages/prisma/seed/teams.ts (+1 -1)

📄 Description

Description

Adds user management capabilities to our current API. Allows for adding, removing, listing and updating members of a given team using a valid API token.

N/A

Changes Made

  • Added an endpoint for inviting a team member
  • Added an endpoint for removing a team member
  • Added an endpoint for updating a team member
  • Added an endpoint for listing team members

Testing Performed

Tests were written for this feature request


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/1416 **Author:** [@Mythie](https://github.com/Mythie) **Created:** 10/22/2024 **Status:** ✅ Merged **Merged:** 10/22/2024 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `feat/user-management-api` --- ### 📝 Commits (6) - [`c626ab2`](https://github.com/documenso/documenso/commit/c626ab2cec9492faa423bde043464bb2d1d28e79) feat: add team user management endpoints to api - [`31e7d17`](https://github.com/documenso/documenso/commit/31e7d177752befc8d98e6b31ef7842c311a43099) fix: add tests - [`9d10589`](https://github.com/documenso/documenso/commit/9d10589ae943c437a09f8b5229fbb55942b6e9ee) fix: update tests - [`31efb00`](https://github.com/documenso/documenso/commit/31efb004235c5149cd0f8e5f08361e0e399df8f9) chore: update implementation and tests - [`9a05251`](https://github.com/documenso/documenso/commit/9a05251b993efbd003d23749ced4b49f5a09f0d5) chore: implement feedback - [`1ded9a9`](https://github.com/documenso/documenso/commit/1ded9a9f61a30484a375e1d7e4015b44d6e24dc8) chore: updates from tests ### 📊 Changes **10 files changed** (+666 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `packages/api/v1/contract.ts` (+61 -0) 📝 `packages/api/v1/implementation.ts` (+274 -1) 📝 `packages/api/v1/schema.ts` (+39 -0) ➕ `packages/app-tests/e2e/api/v1/team-user-management.spec.ts` (+278 -0) 📝 `packages/app-tests/package.json` (+3 -3) 📝 `packages/lib/server-only/public-api/create-api-token.ts` (+1 -1) 📝 `packages/lib/server-only/public-api/delete-api-token-by-id.ts` (+1 -2) 📝 `packages/lib/server-only/public-api/get-all-user-tokens.ts` (+1 -0) 📝 `packages/lib/server-only/public-api/get-api-token-by-token.ts` (+7 -2) 📝 `packages/prisma/seed/teams.ts` (+1 -1) </details> ### 📄 Description ## Description Adds user management capabilities to our current API. Allows for adding, removing, listing and updating members of a given team using a valid API token. ## Related Issue N/A ## Changes Made - Added an endpoint for inviting a team member - Added an endpoint for removing a team member - Added an endpoint for updating a team member - Added an endpoint for listing team members ## Testing Performed Tests were written for this feature request --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:34:01 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#1617
No description provided.