mirror of
https://git.deuxfleurs.fr/Deuxfleurs/garage.git
synced 2024-11-27 18:41:00 +00:00
wip smithy
This commit is contained in:
parent
a2a35ac7a8
commit
0fbc9bbb05
1 changed files with 53 additions and 0 deletions
53
idl/k2v.smithy
Normal file
53
idl/k2v.smithy
Normal file
|
@ -0,0 +1,53 @@
|
|||
$version: "2"
|
||||
namespace org.deuxfleurs.garage.k2v
|
||||
|
||||
service Item {
|
||||
version: "2023-04-10"
|
||||
resources: [ Item ]
|
||||
operations: [ PollItem ]
|
||||
}
|
||||
|
||||
resource Item {
|
||||
read: ReadItem
|
||||
put: InsertItem
|
||||
delete: DeleteItem
|
||||
list: ReadIndex
|
||||
}
|
||||
|
||||
operation ReadItem {
|
||||
input: ReadItemInput
|
||||
output: ReadItemOutput
|
||||
}
|
||||
|
||||
@input
|
||||
structure ReadItemInput {
|
||||
bucket: String
|
||||
partitionKey: String
|
||||
sortKey: String
|
||||
}
|
||||
|
||||
@output
|
||||
union ReadItemOutput {
|
||||
list: ReadItemOutputList
|
||||
raw: blob
|
||||
}
|
||||
|
||||
@sparse
|
||||
list ReadItemOutputList {
|
||||
member: String
|
||||
}
|
||||
|
||||
operation PollItem {
|
||||
input:
|
||||
output:
|
||||
}
|
||||
|
||||
operation InsertItem {
|
||||
input:
|
||||
output:
|
||||
}
|
||||
|
||||
operation DeleteItem {
|
||||
input:
|
||||
output:
|
||||
}
|
Loading…
Reference in a new issue