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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy