Skip to content

feat: add a paginated organization members endpoint #16835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Mar 10, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: remove unneeded comments
  • Loading branch information
brettkolodny committed Mar 6, 2025
commit 902538c5c387f8fe05cc8d801ba4a6a16540991d
11 changes: 3 additions & 8 deletions codersdk/organizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,14 @@ type OrganizationMemberWithUserData struct {
}

type PaginatedMembersRequest struct {
//
OrganizationID uuid.UUID `table:"organization id" json:"organization_id" format:"uuid"`
//
Limit int `json:"limit,omitempty"`
//
Offset int `json:"offset,omitempty"`
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
}

type PaginatedMembersResponse struct {
//
Members []OrganizationMemberWithUserData
//
Count int `json:"count"`
Count int `json:"count"`
}

type CreateOrganizationRequest struct {
Expand Down
Loading