-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed response of getEntityChildren and getEntityHistorySummary to …
…return projectId first and then entityIr in the response.
- Loading branch information
1 parent
0409bd0
commit 1a1c9c1
Showing
4 changed files
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/edu/stanford/protege/gateway/dto/EntityHistorySummaryDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package edu.stanford.protege.gateway.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
|
||
public record EntityHistorySummaryDto( | ||
@JsonProperty("projectId") String projectId, | ||
@JsonProperty("entityUri") String entityUri, | ||
@JsonProperty("changes") List<EntityChange> changes | ||
) { | ||
public static EntityHistorySummaryDto create(String entityUri, | ||
String projectId, | ||
List<EntityChange> changes) { | ||
return new EntityHistorySummaryDto(entityUri, projectId, changes); | ||
} | ||
} |