-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4a12e0
commit 4503fb0
Showing
24 changed files
with
203 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 3 additions & 1 deletion
4
.../events-catalog/domains/Shopping/index.md → docs/events-catalog/domains/Example/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
docs/events-catalog/domains/Inventory/events/InventoryUpdate/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: InventoryUpdate | ||
version: 0.0.1 | ||
summary: | | ||
Event raised when the inventory has been updated. | ||
producers: | ||
- Inventory Service | ||
consumers: | ||
- Order Management Service | ||
owners: | ||
- giovannymassuia | ||
--- | ||
|
||
<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our | ||
schemas have standard metadata make sure you read and follow it.</Admonition> | ||
|
||
### Details | ||
|
||
This event is the final event of the ordering process. It gets raised when the shipment has been | ||
delivered. | ||
|
||
<NodeGraph title="Consumer / Producer Diagram" /> | ||
|
||
<Schema /> |
46 changes: 46 additions & 0 deletions
46
docs/events-catalog/domains/Inventory/events/InventoryUpdate/schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"$id": "https://example.com/AddedItemToCart.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "AddedItemToCart", | ||
"type": "object", | ||
"properties": { | ||
"metadata": { | ||
"type": "object", | ||
"properties": { | ||
"correlationId": { | ||
"type": "string", | ||
"description": "The ID of the user" | ||
}, | ||
"domain": { | ||
"type": "string", | ||
"description": "The domain of the event" | ||
}, | ||
"service": { | ||
"type": "string", | ||
"description": "The name of the service that triggered the event" | ||
} | ||
}, | ||
"required": ["correlationId", "domain"] | ||
}, | ||
"data": { | ||
"type": "object", | ||
"properties": { | ||
"userId": { | ||
"type": "string", | ||
"description": "The ID of the user" | ||
}, | ||
"itemId": { | ||
"type": "string", | ||
"description": "The ID of the shopping item" | ||
}, | ||
"quantity": { | ||
"type": "number", | ||
"description": "How many items the user wants to add to their shopping cart", | ||
"minimum": 1, | ||
"maximum": 1000, | ||
"default": 1 | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
name: Inventory | ||
summary: | | ||
Domain for everything inventory related | ||
owners: | ||
- giovannymassuia | ||
externalLinks: | ||
- label: See code | ||
url: https://github.com/giovannymassuia/disecomm/tree/main/order-management | ||
tags: | ||
- label: order | ||
--- | ||
|
||
### Details | ||
|
||
This domain encapsulates everything in our business that has to do with orders and users. This | ||
might be new orders added to our online shop or order management. | ||
|
||
<NodeGraph title="Domain Graph" /> | ||
|
||
<Mermaid /> |
22 changes: 22 additions & 0 deletions
22
docs/events-catalog/domains/Inventory/services/Inventory Service/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: Inventory Service | ||
summary: | | ||
# CRUD based API to handle Basket interactions for users of the shopping website. | ||
owners: | ||
- giovannymassuia | ||
repository: | ||
language: Java | ||
url: https://github.com/giovannymassuia/disecomm/tree/main/order-management | ||
tags: | ||
- label: order | ||
--- | ||
|
||
Simple API that handles interactions between users and their baskets. Use this service to add, | ||
remove and query the status of a users basket. | ||
|
||
This service will also generate Async events for downstream services. | ||
|
||
<NodeGraph /> | ||
|
||
<Mermaid /> | ||
|
22 changes: 22 additions & 0 deletions
22
docs/events-catalog/domains/Inventory/services/Logistics Service/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: Logistics Service | ||
summary: | | ||
# CRUD based API to handle Basket interactions for users of the shopping website. | ||
owners: | ||
- giovannymassuia | ||
repository: | ||
language: Java | ||
url: https://github.com/giovannymassuia/disecomm/tree/main/order-management | ||
tags: | ||
- label: order | ||
--- | ||
|
||
Simple API that handles interactions between users and their baskets. Use this service to add, | ||
remove and query the status of a users basket. | ||
|
||
This service will also generate Async events for downstream services. | ||
|
||
<NodeGraph /> | ||
|
||
<Mermaid /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
name: Orders | ||
summary: | | ||
Domain for everything orders | ||
owners: | ||
- giovannymassuia | ||
externalLinks: | ||
- label: See code | ||
url: https://github.com/giovannymassuia/disecomm/tree/main/order-management | ||
tags: | ||
- label: order | ||
--- | ||
|
||
### Details | ||
|
||
This domain encapsulates everything in our business that has to do with orders and users. This | ||
might be new orders added to our online shop or order management. | ||
|
||
<NodeGraph title="Domain Graph" /> | ||
|
||
<Mermaid /> |
22 changes: 22 additions & 0 deletions
22
docs/events-catalog/domains/Orders/services/Order Management Service/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: Order Management Service | ||
summary: | | ||
# CRUD based API to handle Basket interactions for users of the shopping website. | ||
owners: | ||
- giovannymassuia | ||
repository: | ||
language: Java | ||
url: https://github.com/giovannymassuia/disecomm/tree/main/order-management | ||
tags: | ||
- label: order | ||
--- | ||
|
||
Simple API that handles interactions between users and their baskets. Use this service to add, | ||
remove and query the status of a users basket. | ||
|
||
This service will also generate Async events for downstream services. | ||
|
||
<NodeGraph /> | ||
|
||
<Mermaid /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters