Implementing list endpoints
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user