Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita693103

Browse files
Thomasrludomikula
Thomasr
authored andcommitted
added get_organization api
1 parent34111c5 commita693103

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

‎server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/usermanagement/OrganizationController.java‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,11 @@ public Mono<ResponseView<Organization>> updateSlug(@PathVariable String orgId, @
182182
.map(ResponseView::success);
183183
}
184184

185-
}
185+
@Override
186+
publicMono<ResponseView<Organization>>getOrganization(@PathVariableStringorgId) {
187+
returngidService.convertOrganizationIdToObjectId(orgId)
188+
.flatMap(id ->organizationService.getById(id))
189+
.map(ResponseView::success);
190+
}
191+
192+
}

‎server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/usermanagement/OrganizationEndpoints.java‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,15 @@ public Mono<ResponseView<Boolean>> removeUserFromOrg(@PathVariable String orgId,
184184
@PutMapping("/{orgId}/slug")
185185
Mono<ResponseView<Organization>>updateSlug(@PathVariableStringorgId,@RequestBodyStringslug);
186186

187+
@Operation(
188+
tags =TAG_ORGANIZATION_MANAGEMENT,
189+
operationId ="getOrganization",
190+
summary ="Get Organization by ID",
191+
description ="Retrieve details of a specific Organization within Lowcoder using its unique ID."
192+
)
193+
@GetMapping("/{orgId}")
194+
publicMono<ResponseView<Organization>>getOrganization(@PathVariableStringorgId);
195+
187196
publicrecordUpdateOrgCommonSettingsRequest(Stringkey,Objectvalue) {
188197

189198
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp