Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
feat(metadata): return SDB ID from the metadata endpoint (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayitbeegh authored Jun 10, 2020
1 parent ea6154c commit 977b896
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

public class SDBMetadata {

private String id;
private String name;
private String path;
private String category;
Expand Down Expand Up @@ -129,4 +130,12 @@ public Map<String, Map<String, Object>> getData() {
public void setData(Map<String, Map<String, Object>> data) {
this.data = data;
}

public void setId(String id) {
this.id = id;
}

public String getId() {
return id;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ protected List<SDBMetadata> getSDBMetadataList(int limit, int offset, String sdb
sdb -> {
SDBMetadata data = new SDBMetadata();
data.setName(sdb.getName());
data.setId(sdb.getId());
data.setPath(sdb.getPath());
data.setDescription(sdb.getDescription());
data.setCategory(catIdToStringMap.get(sdb.getCategoryId()));
Expand Down

0 comments on commit 977b896

Please sign in to comment.