-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for entityOperation/upsert with update option #21
- Loading branch information
Showing
14 changed files
with
476 additions
and
46 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
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
15 changes: 11 additions & 4 deletions
15
entity-service/src/main/kotlin/com/egm/stellio/entity/web/APIResponses.kt
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 |
---|---|---|
@@ -1,11 +1,18 @@ | ||
package com.egm.stellio.entity.web | ||
|
||
data class BatchOperationResult( | ||
val success: ArrayList<String>, | ||
val errors: ArrayList<BatchEntityError> | ||
) | ||
val success: ArrayList<String> = arrayListOf(), | ||
val errors: ArrayList<BatchEntityError> = arrayListOf() | ||
) { | ||
|
||
operator fun plusAssign(other: BatchOperationResult) { | ||
success.addAll(other.success) | ||
errors.addAll(other.errors) | ||
} | ||
} | ||
|
||
data class BatchEntityError( | ||
val entityId: String, | ||
val error: ArrayList<String> | ||
) | ||
|
||
) |
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
Oops, something went wrong.