From 0fbc9bbb05dd9dcfc4c064e20113629fd1af8de9 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 10 Apr 2023 17:12:53 +0200 Subject: [PATCH] wip smithy --- idl/k2v.smithy | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 idl/k2v.smithy diff --git a/idl/k2v.smithy b/idl/k2v.smithy new file mode 100644 index 00000000..62eb106b --- /dev/null +++ b/idl/k2v.smithy @@ -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: +}