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

Read the architecture guide →

Get book over gRPCv1.0.0 · Protobuf Schema

Returns one Catalog book by identifier through the book.v1 gRPC contract.

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