Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Get books over gRPCv1.0.0 · Protobuf Schema

Returns multiple Catalog books by identifier through the book.v1 gRPC contract.

1edition = "2023";
2
3package book.v1;
4
5service BookGrpcService {
6  rpc GetBooks (GetBooksRequest) returns (GetBooksResponse);
7}
8
9message GetBooksRequest {
10  repeated string book_ids = 1;
11}
12
13message GetBooksResponse {
14  repeated GetBookResponse books = 1;
15}
16
17message GetBookResponse {
18  string id = 1;
19  string name = 2;
20  DecimalValue price = 3;
21  DecimalValue price_sale = 4;
22  BookStatus status = 5;
23}
24
25enum BookStatus {
26  BOOK_STATUS_UNSPECIFIED = 0;
27  BOOK_STATUS_IN_STOCK = 1;
28  BOOK_STATUS_OUT_OF_STOCK = 2;
29}
30
31message DecimalValue {
32  int64 units = 1;
33  sfixed32 nanos = 2;
34}
35