Skip to content

Commit ef4740a

Browse files
committed
add more transform rules #4
1 parent 900ccb1 commit ef4740a

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ $ npm run dev
3434
- Public Apis:
3535

3636
> Tye Dashboard: [http://localhost:8000](http://localhost:8000)
37+
>
38+
> Play around at [restclient.http](restclient.http)
3739
3840
<table>
3941
<thead>

restclient.http

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
@host = http://localhost:5000
22

33
###
4-
GET {{host}}/product-api/api/products?api-version=1.0 HTTP/1.1
4+
GET {{host}}/product-api/products?api-version=1.0 HTTP/1.1
55
content-type: {{contentType}}
66
x-query: {"filters":[{"fieldName": "Name", "comparision": "Contains", "fieldValue": "test"}],"sorts":["nameDesc"],"page":1,"pageSize":20}
77

88
###
99
@id = 23537dac-303f-446f-be2a-1dbea22b3eba
10-
GET {{host}}/product-api/api/products/{{id}}?api-version=1.0 HTTP/1.1
10+
GET {{host}}/product-api/products/{{id}}?api-version=1.0 HTTP/1.1
1111
content-type: {{contentType}}
1212

1313
###
1414
@country-id = 18a4a8ae-3338-484a-a4ed-6e64d13d84dc
15-
GET {{host}}/setting-api/api/countries/{{country-id}} HTTP/1.1
15+
GET {{host}}/setting-api/countries/{{country-id}} HTTP/1.1
1616
content-type: {{contentType}}
1717

1818
###
19-
POST {{host}}/product-api/api/products?api-version=1.0 HTTP/1.1
19+
POST {{host}}/product-api/products?api-version=1.0 HTTP/1.1
2020
content-type: {{contentType}}
2121

2222
{
@@ -29,7 +29,7 @@ content-type: {{contentType}}
2929
}
3030

3131
###
32-
POST {{host}}/customer-api/api/customers?api-version=1.0 HTTP/1.1
32+
POST {{host}}/customer-api/customers?api-version=1.0 HTTP/1.1
3333
content-type: {{contentType}}
3434

3535
{

src/Gateways/AppGateway/appsettings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"Transforms": [
1919
{ "PathRemovePrefix": "/product-api" },
20+
{ "PathPrefix": "/api" },
2021
{
2122
"X-Forwarded": "proto,host,for,pathbase",
2223
"Append": "true",
@@ -34,6 +35,7 @@
3435
},
3536
"Transforms": [
3637
{ "PathRemovePrefix": "/customer-api" },
38+
{ "PathPrefix": "/api" },
3739
{
3840
"X-Forwarded": "proto,host,for,pathbase",
3941
"Append": "true",
@@ -51,6 +53,7 @@
5153
},
5254
"Transforms": [
5355
{ "PathRemovePrefix": "/setting-api" },
56+
{ "PathPrefix": "/api" },
5457
{
5558
"X-Forwarded": "proto,host,for,pathbase",
5659
"Append": "true",

0 commit comments

Comments
 (0)