Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit ed37296

Browse files
authored
Merge pull request #8 from microservices-demo/api-mock
Adding mock and mock routes
2 parents 0863fe5 + 323ad4e commit ed37296

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

api-spec/mock.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"carts": [
3+
{
4+
"id": "57a98d98e4b00679b4a830af"
5+
}
6+
],
7+
"items": [
8+
{
9+
"id": 1,
10+
"quantity": 10,
11+
"unitPrice": 1.99,
12+
"cartsId": "57a98d98e4b00679b4a830af"
13+
}
14+
]
15+
}

api-spec/routes.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"/carts/:cartsId/items/:id": "/items/:id"
3+
}

0 commit comments

Comments
 (0)