Skip to content

Latest commit

 

History

History
59 lines (48 loc) · 1.57 KB

restaurant_service.md

File metadata and controls

59 lines (48 loc) · 1.57 KB

Restaurant Service

Business Logic

APIs

RESTful APIs

API Documentation (Swagger UI)

Method URL Request Response Description
GET /restaurants/{restaurantId} GetRestaurantResponse JSON Get a restaurant by restaurant ID.
POST /restaurants CreateRestaurantRequest JSON CreateRestaurantResponse JSON Add a new restaurant.

gRPC APIs

None

Commands

Outbound Commands

None

Inbound Commands

None

Events

Outbound Events

  • Core event entity (Aggregate root entity): Restaurant
Event Target Service(s) Description
RestaurantCreatedEvent None
  • The Restaurant Service notifies other services about a restaurant has been created.
  • Inbound Events

    None

    Database

    • restaurants

      Column Type Properties
      id bigint(20) PRI
      name varchar(255)
    • kitchen_service_restaurant_menu_items

      Column Type Properties
      restaurant_id bigint(20) MUL
      id varchar(255)
      name varchar(255)
      amount decimal(19,2)