Ordering Service

Build Status Dependencies Coverage Status

A microservice for order management.

Features

  • Management of orders through the Order resource.

API

This microservice exposes the following gRPC endpoints:

Order

A Order resource.

io.restorecommerce.order.Order

Field Type Label Description

id

string

required

Order ID, unique, key

meta

io.restorecommerce.meta.Meta

required

Meta info

name

string

required

Name

description

string

optional

description

A list of Order resources:

io.restorecommerce.order.OrderList

Field Type Label Description

items

io.restorecommerce.order.Order

required

List of Orders

total_count

number

optional

number of Orders

CRUD Operations

The microservice exposes the below CRUD operations for creating or modifying Order and Role resources.

io.restorecommerce.order.Service

Method Name Request Type Response Type Description

Create

io.restorecommerce.order.OrderList

io.restorecommerce.order.OrderList

Create a list of Order resources

Read

io.restorecommerce.resourcebase.ReadRequest

io.restorecommerce.order.OrderList

Read a list of Order resources

Update

io.restorecommerce.order.OrderList

io.restorecommerce.order.OrderList

Update a list of Order resources

Delete

io.restorecommerce.resourcebase.DeleteRequest

Empty

Delete a list of Order resources

Upsert

io.restorecommerce.order.OrderList

io.restorecommerce.order.OrderList

Create or Update a list of Order resources

For the detailed protobuf message structure of io.restorecommerce.resourcebase.ReadRequest and io.restorecommerce.resourcebase.DeleteRequest refer resource-base-interface.

Events

Emitted

List of events emitted by this microservice for below topics:

Topic Name Event Name Description

io.restorecommerce.orders.resource

orderCreated

order created

orderModified

order modified

orderDeleted

order deleted

Consumed

This microservice consumes messages for the following events by topic:

Topic Name Event Name Description

io.restorecommerce.command

restoreCommand

for triggering for system restore

resetCommand

for triggering system reset

healthCheckCommand

to get system health check

versionCommand

to get system version