Content-Length: 289852 | pFad | http://github.com/lowcoder-org/lowcoder/commit/078803c3d37a7f7dbb21f2fe9d572efe001d1b58

66 Add sharing state on app creation API · lowcoder-org/lowcoder@078803c · GitHub
Skip to content

Commit 078803c

Browse files
dragonpooludomikula
authored andcommitted
Add sharing state on app creation API
1 parent cda8b6d commit 078803c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/application/ApplicationApiServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public Mono<ApplicationView> create(CreateApplicationRequest createApplicationRe
107107
createApplicationRequest.applicationType(),
108108
NORMAL,
109109
createApplicationRequest.editingApplicationDSL(),
110-
false, false, false, "", Instant.now());
110+
ObjectUtils.defaultIfNull(createApplicationRequest.publicToAll(), false), ObjectUtils.defaultIfNull(createApplicationRequest.publicToMarketplace(), false), false, "", Instant.now());
111111

112112
if (StringUtils.isBlank(application.getOrganizationId())) {
113113
return deferredError(INVALID_PARAMETER, "ORG_ID_EMPTY");

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/application/ApplicationEndpoints.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@ public record CreateApplicationRequest(@JsonProperty("orgId") String organizatio
302302
String name,
303303
Integer applicationType,
304304
Map<String, Object> editingApplicationDSL,
305-
@Nullable String folderId) {
305+
@Nullable String folderId,
306+
@Nullable Boolean publicToAll,
307+
@Nullable Boolean publicToMarketplace) {
306308
}
307309
public record UpdateEditStateRequest(Boolean editingFinished) {
308310
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lowcoder-org/lowcoder/commit/078803c3d37a7f7dbb21f2fe9d572efe001d1b58

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy