Skip to content

Commit 5908008

Browse files
committed
add web
1 parent c05ebf2 commit 5908008

File tree

468 files changed

+17539
-64618
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

468 files changed

+17539
-64618
lines changed

restclient.http

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
@idphost=https://localhost:5001
2+
@host=http://localhost:5000
3+
14
###
25
# @name auth
36
POST {{idphost}}/connect/token HTTP/1.1
@@ -13,28 +16,28 @@ grant_type=password
1316
@page = 1
1417
@price = 10000
1518
GET {{host}}/prod/api/products/{{page}}/{{price}} HTTP/1.1
16-
content-type: {{contentType}}
17-
authorization: bearer {{auth.response.body.access_token}}
19+
content-type: application/json
20+
# authorization: bearer {{auth.response.body.access_token}}
1821

1922
###
2023
@search_query = *
2124
@search_price = 3000
2225
@search_page = 1
2326
@search_pageSize = 20
2427
GET {{host}}/prod/api/product-search/{{search_query}}/{{search_price}}/{{search_page}}/{{search_pageSize}} HTTP/1.1
25-
content-type: {{contentType}}
26-
authorization: bearer {{auth.response.body.access_token}}
28+
content-type: application/json
29+
# authorization: bearer {{auth.response.body.access_token}}
2730

2831
###
2932
@id = fee1fc67-7469-4490-b418-47f4732de53f
3033
GET {{host}}/prod/api/products/fee1fc67-7469-4490-b418-47f4732de53f HTTP/1.1
31-
content-type: {{contentType}}
32-
authorization: bearer {{auth.response.body.access_token}}
34+
content-type: application/json
35+
# authorization: bearer {{auth.response.body.access_token}}
3336

3437
###
3538
POST {{host}}/prod/api/products HTTP/1.1
36-
content-type: {{contentType}}
37-
authorization: bearer {{auth.response.body.access_token}}
39+
content-type: application/json
40+
# authorization: bearer {{auth.response.body.access_token}}
3841

3942
{
4043
"name": "sample product",
@@ -46,8 +49,8 @@ authorization: bearer {{auth.response.body.access_token}}
4649
###
4750
@id = 05233341-185a-468a-b074-00ebd08559aa
4851
PUT {{host}}/prod/api/products/{{id}} HTTP/1.1
49-
content-type: {{contentType}}
50-
authorization: bearer {{auth.response.body.access_token}}
52+
content-type: application/json
53+
# authorization: bearer {{auth.response.body.access_token}}
5154

5255
{
5356
"name": "sample product",
@@ -59,36 +62,30 @@ authorization: bearer {{auth.response.body.access_token}}
5962
###
6063
@id = 05233341-185a-468a-b074-00ebd08559aa
6164
DELETE {{host}}/prod/api/products/{{id}} HTTP/1.1
62-
content-type: {{contentType}}
63-
authorization: bearer {{auth.response.body.access_token}}
65+
content-type: application/json
66+
# authorization: bearer {{auth.response.body.access_token}}
6467

6568
###
6669
GET {{host}}/inv/api/inventories HTTP/1.1
67-
content-type: {{contentType}}
68-
authorization: bearer {{auth.response.body.access_token}}
70+
content-type: application/json
71+
# authorization: bearer {{auth.response.body.access_token}}
6972

7073
###
7174
@id = 90c9479e-a11c-4d6d-aaaa-0405b6c0efcd
7275
GET {{host}}/inv/api/inventories/{{id}} HTTP/1.1
73-
content-type: {{contentType}}
74-
authorization: bearer {{auth.response.body.access_token}}
75-
76-
###
77-
@id = a7791191-ff4a-4938-a4ed-b9074e59a18b
78-
GET {{host}}/cart/api/carts/{{id}} HTTP/1.1
79-
content-type: {{contentType}}
80-
authorization: bearer {{auth.response.body.access_token}}
76+
content-type: application/json
77+
# authorization: bearer {{auth.response.body.access_token}}
8178

8279
###
8380
@id = a7791191-ff4a-4938-a4ed-b9074e59a18b
84-
GET {{host}}/cart/api/carts/{{id}} HTTP/1.1
85-
content-type: {{contentType}}
86-
authorization: bearer {{auth.response.body.access_token}}
81+
GET {{host}}/api-gw/shopping-cart/api/carts/{{id}} HTTP/1.1
82+
content-type: application/json
83+
# authorization: bearer {{auth.response.body.access_token}}
8784

8885
###
8986
POST {{host}}/cart/api/carts HTTP/1.1
90-
content-type: {{contentType}}
91-
authorization: bearer {{auth.response.body.access_token}}
87+
content-type: application/json
88+
# authorization: bearer {{auth.response.body.access_token}}
9289

9390
{
9491
"productId": "05233341-185a-468a-b074-00ebd08559aa",
@@ -98,8 +95,8 @@ authorization: bearer {{auth.response.body.access_token}}
9895
###
9996
@id = 68994e16-fe26-4ff5-bc1d-9536be02b9bf
10097
PUT {{host}}/cart/api/carts/{{id}} HTTP/1.1
101-
content-type: {{contentType}}
102-
authorization: bearer {{auth.response.body.access_token}}
98+
content-type: application/json
99+
# authorization: bearer {{auth.response.body.access_token}}
103100

104101
{
105102
"productId": "a162b9ee-85b4-457a-93fc-015df74201dd",
@@ -109,11 +106,11 @@ authorization: bearer {{auth.response.body.access_token}}
109106
###
110107
@id = EE8359B9-FDD4-43ED-B385-7003E22F4222
111108
PUT {{host}}/cart/api/carts/{{id}}/checkout HTTP/1.1
112-
content-type: {{contentType}}
113-
authorization: bearer {{auth.response.body.access_token}}
109+
content-type: application/json
110+
# authorization: bearer {{auth.response.body.access_token}}
114111

115112
###
116113
@id = EE8359B9-FDD4-43ED-B385-7003E22F4222
117114
DELETE {{host}}/cart/api/carts/{{id}} HTTP/1.1
118-
content-type: {{contentType}}
119-
authorization: bearer {{auth.response.body.access_token}}
115+
content-type: application/json
116+
# authorization: bearer {{auth.response.body.access_token}}

src/BFFs/WebApiGateway/Dockerfile

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/BFFs/WebApiGateway/InMemoryConfigProvider.cs

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/BFFs/WebApiGateway/Program.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)