Repository navigation
feat(server): add workspaces REST endpoints (list/create/get) - #13
Merged
Merged
Conversation
New CollabModule with WorkspacesController: POST /workspaces, GET /workspaces, GET /workspaces/:id. Adds WorkspaceRepository.listForUser and UserRepository.findByIds; AuthModule now exports AuthService and AccessGuard for reuse by future collab controllers. Specs S1-S3/S14 in odd/tasks/api-rest-crud.md.
This was referenced Oct 16, 2026
facyndev
added a commit
that referenced
this pull request
Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WorkspacesController:POST /workspaces(caller becomes owner),GET /workspaces(owner-or-member listing with member counts),GET /workspaces/:id(detail with members; 404 unknown, 403 no access).WorkspaceRepository.listForUserandUserRepository.findByIdsto back the listings/projections.CollabModule(Persistence + Auth) with strict zodZodPipebody validation andAccessGuardon every route (S14): no token → 401.Changes
apps/api/src/collab/workspaces.controller.tsapps/api/src/collab/workspace.service.tsapps/api/src/collab/dto.ts,views.tsapps/api/src/collab/collab.module.tsapps/api/src/persistence/workspace.repository.tslistForUser(owner or member)apps/api/src/collab/workspaces.controller.int.spec.tsTest evidence
review-78dd02cdbbd5c9c3), 0 blockers. Advisories R3-001/R3-002 are tracked as follow-ups in the feature doc (odd/tasks/api-rest-crud.md, L6).Chain Context
feature/api-rest-crud→develop(created after the slice PRs)developsize:exception: single cohesive work unit (controller + repository + module + its tests), already RDD-reviewed as one unitChain Overview
Scope
listForUser,CollabModulescaffolding, module/auth wiringAutonomy