Implementing list endpoints

This commit is contained in:
Brandon Watson
2023-08-14 20:21:33 -05:00
parent 6799b59f9c
commit bdb7a39a91
8 changed files with 135 additions and 12 deletions

View File

@ -30,8 +30,14 @@ var _ = Service("item", func() {
})
})
// Method("listItems", func() {
// })
Method("listItems", func() {
Payload(Empty)
Result(ArrayOf(Item))
GRPC(func() {
Response(CodeOK)
})
})
Method("createItem", func() {
Payload(Item)