Commit 6bc1665 1 parent aae3c13 commit 6bc1665 Copy full SHA for 6bc1665
File tree 5 files changed +92
-0
lines changed
src/main/kotlin/org/veupathdb/vdi/lib/common/intra
5 files changed +92
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,34 @@ package org.veupathdb.vdi.lib.common.intra
2
2
3
3
import com.fasterxml.jackson.annotation.JsonProperty
4
4
5
+ /* *
6
+ * Defines a common response body consisting of a JSON object containing a
7
+ * single key "message" mapped to a string value containing an error message.
8
+ *
9
+ * ```json
10
+ * {
11
+ * "message": "some error message"
12
+ * }
13
+ * ```
14
+ *
15
+ * @since 10.1.0
16
+ */
5
17
data class SimpleErrorResponse (@JsonProperty(JSONKeys .Message ) val message : String )
6
18
19
+ /* *
20
+ * Defines a common response body consisting of a JSON object containing a
21
+ * single key "warnings" mapped to an array of strings representing warnings
22
+ * generated during the triggering request.
23
+ *
24
+ * ```json
25
+ * {
26
+ * "warnings": [
27
+ * "some warning 1",
28
+ * "some warning 2"
29
+ * ]
30
+ * }
31
+ * ```
32
+ *
33
+ * @since 10.1.0
34
+ */
7
35
data class WarningResponse (@JsonProperty(JSONKeys .Warnings ) val warnings : Collection <String >)
Original file line number Diff line number Diff line change @@ -4,6 +4,22 @@ import com.fasterxml.jackson.annotation.JsonProperty
4
4
import org.veupathdb.vdi.lib.common.field.DatasetID
5
5
import org.veupathdb.vdi.lib.common.model.VDIDatasetMeta
6
6
7
+ /* *
8
+ * Represents the JSON body of a dataset import request made by the core VDI
9
+ * service to a plugin server.
10
+ *
11
+ * ```json
12
+ * {
13
+ * "vdiID": "W7GY9DuVdxv",
14
+ * "jobID": 22305,
15
+ * "meta": {
16
+ * ... see VDIDatasetMeta ...
17
+ * }
18
+ * }
19
+ * ```
20
+ *
21
+ * @since v10.1.0
22
+ */
7
23
data class ImportRequest (
8
24
@JsonProperty(JSONKeys .VDIID ) val vdiID : DatasetID ,
9
25
@JsonProperty(JSONKeys .JobID ) val jobID : ULong ,
Original file line number Diff line number Diff line change @@ -5,12 +5,43 @@ import org.veupathdb.vdi.lib.common.field.DatasetID
5
5
import org.veupathdb.vdi.lib.common.field.ProjectID
6
6
import org.veupathdb.vdi.lib.common.model.VDIDatasetMeta
7
7
8
+ /* *
9
+ * Represents the JSON body of a dataset data install request made by the core
10
+ * VDI service to a plugin server.
11
+ *
12
+ * ```json
13
+ * {
14
+ * "vdiID": "W7GY9DuVdxv",
15
+ * "jobID": 22305,
16
+ * "projectID": "PlasmoDB"
17
+ * }
18
+ * ```
19
+ *
20
+ * @since v10.1.0
21
+ */
8
22
data class InstallDataRequest (
9
23
@JsonProperty(JSONKeys .VDIID ) val vdiID : DatasetID ,
10
24
@JsonProperty(JSONKeys .JobID ) val jobID : ULong ,
11
25
@JsonProperty(JSONKeys .ProjectID ) val projectID : ProjectID ,
12
26
)
13
27
28
+ /* *
29
+ * Represents the JSON body of a dataset meta install request made by the core
30
+ * VDI service to a plugin server.
31
+ *
32
+ * ```json
33
+ * {
34
+ * "vdiID": "W7GY9DuVdxv",
35
+ * "jobID": 22305,
36
+ * "projectID": "PlasmoDB",
37
+ * "meta": {
38
+ * ... see VDIDatasetMeta ...
39
+ * }
40
+ * }
41
+ * ```
42
+ *
43
+ * @since v10.1.0
44
+ */
14
45
data class InstallMetaRequest (
15
46
@JsonProperty(JSONKeys .VDIID ) val vdiID : DatasetID ,
16
47
@JsonProperty(JSONKeys .JobID ) val jobID : ULong ,
Original file line number Diff line number Diff line change 1
1
package org.veupathdb.vdi.lib.common.intra
2
2
3
+ /* *
4
+ * Internal registry of JSON object keys used in this package.
5
+ */
3
6
internal object JSONKeys {
4
7
const val JobID = " jobID"
5
8
const val Message = " message"
Original file line number Diff line number Diff line change @@ -4,6 +4,20 @@ import com.fasterxml.jackson.annotation.JsonProperty
4
4
import org.veupathdb.vdi.lib.common.field.DatasetID
5
5
import org.veupathdb.vdi.lib.common.field.ProjectID
6
6
7
+ /* *
8
+ * Represents the JSON body of a dataset uninstall request made by the core VDI
9
+ * service to a plugin server.
10
+ *
11
+ * ```json
12
+ * {
13
+ * "vdiID": "W7GY9DuVdxv",
14
+ * "jobID": 22305,
15
+ * "projectID": "PlasmoDB"
16
+ * }
17
+ * ```
18
+ *
19
+ * @since v10.1.0
20
+ */
7
21
data class UninstallRequest (
8
22
@JsonProperty(JSONKeys .VDIID ) val vdiID : DatasetID ,
9
23
@JsonProperty(JSONKeys .JobID ) val jobID : ULong ,
You can’t perform that action at this time.
0 commit comments