Slide 30
Slide 30 text
こんな感じでできたらよさそう(´∀`
)
with Service('example_service'):
Title('This is an example service')
with Method('liveness'):
Description('liveness probe')
Result(str)
HTTP(GET, '/liveness')
with Method('add'):
Description('a + b')
with Payload():
Field(1, "a", int, "left operand")
Field(2, "b", int, "right operand")
Required("a", "b")
Result(int)
HTTP(GET, '/add/{a}/{b}')
GRPC()
30