Skip to content

Commit 8ab8684

Browse files
structurizr-client: Adds branches and users information to the admin API response.
1 parent efe39af commit 8ab8684

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## v5.0.2 (unreleased)
44

55
- structurizr-client: Adds a `getWorkspaceAsJson()` to `WorkspaceApiClient`.
6+
- structurizr-client: Adds branches and users information to the admin API response.
67

78
## v5.0.1 (1st November 2025)
89

structurizr-client/src/main/java/com/structurizr/api/WorkspaceMetadata.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ public class WorkspaceMetadata {
1212
private String publicUrl;
1313
private String shareableUrl;
1414

15+
private String[] branches;
16+
17+
private WorkspaceUsers users;
18+
1519
WorkspaceMetadata() {
1620
}
1721

@@ -79,4 +83,20 @@ void setShareableUrl(String shareableUrl) {
7983
this.shareableUrl = shareableUrl;
8084
}
8185

86+
public String[] getBranches() {
87+
return branches;
88+
}
89+
90+
void setBranches(String[] branches) {
91+
this.branches = branches;
92+
}
93+
94+
public WorkspaceUsers getUsers() {
95+
return users;
96+
}
97+
98+
void setUsers(WorkspaceUsers users) {
99+
this.users = users;
100+
}
101+
82102
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
package com.structurizr.api;
2+
3+
public class WorkspaceUsers {
4+
5+
private String owner;
6+
private String[] admin;
7+
private String[] write;
8+
private String[] read;
9+
10+
public String getOwner() {
11+
return owner;
12+
}
13+
14+
void setOwner(String owner) {
15+
this.owner = owner;
16+
}
17+
18+
public String[] getAdmin() {
19+
return admin;
20+
}
21+
22+
void setAdmin(String[] admin) {
23+
this.admin = admin;
24+
}
25+
26+
public String[] getWrite() {
27+
return write;
28+
}
29+
30+
void setWrite(String[] write) {
31+
this.write = write;
32+
}
33+
34+
public String[] getRead() {
35+
return read;
36+
}
37+
38+
void setRead(String[] read) {
39+
this.read = read;
40+
}
41+
42+
}

0 commit comments

Comments
 (0)