service ToyStore

Sample Toystore Service

A sample API that uses a toystore as an example to demonstrate features in the reproto specification

ToyStore :: get_toys ( request : ToyStore :: GetToys ) stream Toy

Get a stream of all available toys.

The stream will contain all the toys in the store, it is up to the client to terminate when done.

ToyStore :: get_toy ( request : u64 ) Toy

Get a single toy by its identifier.

ToyStore :: get_greeting ( request : string ) c :: Greeting

Gets a greeting for the given name.

nested type ToyStore :: GetToys

The get_toys request body.