mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 05:48:16 +08:00
Removed unused usings, removed empty spaces, removed tons os warnings (#903)
This commit is contained in:
@ -1,197 +1,197 @@
|
||||
{
|
||||
"id": "4dbde9fe-89f5-be35-bb9f-d3b438e16375",
|
||||
"name": "Ocelot",
|
||||
"description": "",
|
||||
"order": [
|
||||
"a1c95935-ed18-d5dc-bcb8-a3db8ba1934f",
|
||||
"ea0ed57a-2cb9-8acc-47dd-006b8db2f1b2",
|
||||
"c4494401-3985-a5bf-71fb-6e4171384ac6",
|
||||
"09af8dda-a9cb-20d2-5ee3-0a3023773a1a",
|
||||
"e8825dc3-4137-99a7-0000-ef5786610dc3",
|
||||
"fddfc4fa-5114-69e3-4744-203ed71a526b",
|
||||
"c45d30d7-d9c4-fa05-8110-d6e769bb6ff9",
|
||||
"4684c2fa-f38c-c193-5f55-bf563a1978c6",
|
||||
"37bfa9f1-fe29-6a68-e558-66d125d2c96f",
|
||||
"5f308240-79e3-cf74-7a6b-fe462f0d54f1",
|
||||
"178f16da-c61b-c881-1c33-9d64a56851a4"
|
||||
],
|
||||
"folders": [],
|
||||
"folders_order": [],
|
||||
"timestamp": 0,
|
||||
"owner": "212120",
|
||||
"public": false,
|
||||
"requests": [
|
||||
{
|
||||
"folder": null,
|
||||
"id": "09af8dda-a9cb-20d2-5ee3-0a3023773a1a",
|
||||
"name": "GET http://localhost:5000/comments?postId=1",
|
||||
"dataMode": "params",
|
||||
"data": null,
|
||||
"rawModeData": null,
|
||||
"descriptionFormat": "html",
|
||||
"description": "",
|
||||
"headers": "",
|
||||
"method": "GET",
|
||||
"pathVariables": {},
|
||||
"url": "http://localhost:5000/comments?postId=1",
|
||||
"preRequestScript": null,
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"queryParams": [],
|
||||
"headerData": [],
|
||||
"pathVariableData": [],
|
||||
"responses": [],
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
|
||||
},
|
||||
{
|
||||
"id": "178f16da-c61b-c881-1c33-9d64a56851a4",
|
||||
"headers": "Authorization: Bearer {{AccessToken}}\n",
|
||||
"headerData": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{AccessToken}}",
|
||||
"enabled": true,
|
||||
"description": ""
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:5000/administration/configuration",
|
||||
"folder": null,
|
||||
"queryParams": [],
|
||||
"preRequestScript": null,
|
||||
"pathVariables": {},
|
||||
"pathVariableData": [],
|
||||
"method": "GET",
|
||||
"data": null,
|
||||
"dataMode": "params",
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"time": 1508849878025,
|
||||
"name": "GET http://localhost:5000/admin/configuration",
|
||||
"description": "",
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375",
|
||||
"responses": [],
|
||||
"isFromCollection": true,
|
||||
"collectionRequestId": "178f16da-c61b-c881-1c33-9d64a56851a4",
|
||||
"rawModeData": null,
|
||||
"descriptionFormat": null
|
||||
},
|
||||
{
|
||||
"id": "37bfa9f1-fe29-6a68-e558-66d125d2c96f",
|
||||
"headers": "",
|
||||
"headerData": [],
|
||||
"url": "http://localhost:5000/administration/connect/token",
|
||||
"folder": null,
|
||||
"queryParams": [],
|
||||
"preRequestScript": null,
|
||||
"pathVariables": {},
|
||||
"pathVariableData": [],
|
||||
"method": "POST",
|
||||
"data": [
|
||||
{
|
||||
"key": "client_id",
|
||||
"value": "admin",
|
||||
"type": "text",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"key": "client_secret",
|
||||
"value": "secret",
|
||||
"type": "text",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"key": "scope",
|
||||
"value": "admin",
|
||||
"type": "text",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"key": "username",
|
||||
"value": "admin",
|
||||
"type": "text",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"key": "password",
|
||||
"value": "secret",
|
||||
"type": "text",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"key": "grant_type",
|
||||
"value": "password",
|
||||
"type": "text",
|
||||
"enabled": true
|
||||
}
|
||||
],
|
||||
"dataMode": "params",
|
||||
"tests": "var jsonData = JSON.parse(responseBody);\npostman.setGlobalVariable(\"AccessToken\", jsonData.access_token);\npostman.setGlobalVariable(\"RefreshToken\", jsonData.refresh_token);",
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"time": 1506359585080,
|
||||
"name": "POST http://localhost:5000/admin/connect/token copy",
|
||||
"description": "",
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375",
|
||||
"responses": [],
|
||||
"isFromCollection": true,
|
||||
"collectionRequestId": "37bfa9f1-fe29-6a68-e558-66d125d2c96f",
|
||||
"rawModeData": null,
|
||||
"descriptionFormat": null
|
||||
},
|
||||
{
|
||||
"folder": null,
|
||||
"id": "4684c2fa-f38c-c193-5f55-bf563a1978c6",
|
||||
"name": "DELETE http://localhost:5000/posts/1",
|
||||
"dataMode": "params",
|
||||
"data": null,
|
||||
"rawModeData": null,
|
||||
"descriptionFormat": "html",
|
||||
"description": "",
|
||||
"headers": "",
|
||||
"method": "DELETE",
|
||||
"pathVariables": {},
|
||||
"url": "http://localhost:5000/posts/1",
|
||||
"preRequestScript": null,
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"queryParams": [],
|
||||
"headerData": [],
|
||||
"pathVariableData": [],
|
||||
"responses": [],
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
|
||||
},
|
||||
{
|
||||
"id": "5f308240-79e3-cf74-7a6b-fe462f0d54f1",
|
||||
"headers": "Authorization: Bearer {{AccessToken}}\n",
|
||||
"headerData": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{AccessToken}}",
|
||||
"description": "",
|
||||
"enabled": true
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:5000/administration/.well-known/openid-configuration",
|
||||
"folder": null,
|
||||
"queryParams": [],
|
||||
"preRequestScript": null,
|
||||
"pathVariables": {},
|
||||
"pathVariableData": [],
|
||||
"method": "GET",
|
||||
"data": null,
|
||||
"dataMode": "params",
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": {},
|
||||
"time": 1508849923518,
|
||||
"name": "GET http://localhost:5000/admin/.well-known/openid-configuration",
|
||||
"description": "",
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375",
|
||||
"responses": []
|
||||
},
|
||||
"id": "4dbde9fe-89f5-be35-bb9f-d3b438e16375",
|
||||
"name": "Ocelot",
|
||||
"description": "",
|
||||
"order": [
|
||||
"a1c95935-ed18-d5dc-bcb8-a3db8ba1934f",
|
||||
"ea0ed57a-2cb9-8acc-47dd-006b8db2f1b2",
|
||||
"c4494401-3985-a5bf-71fb-6e4171384ac6",
|
||||
"09af8dda-a9cb-20d2-5ee3-0a3023773a1a",
|
||||
"e8825dc3-4137-99a7-0000-ef5786610dc3",
|
||||
"fddfc4fa-5114-69e3-4744-203ed71a526b",
|
||||
"c45d30d7-d9c4-fa05-8110-d6e769bb6ff9",
|
||||
"4684c2fa-f38c-c193-5f55-bf563a1978c6",
|
||||
"37bfa9f1-fe29-6a68-e558-66d125d2c96f",
|
||||
"5f308240-79e3-cf74-7a6b-fe462f0d54f1",
|
||||
"178f16da-c61b-c881-1c33-9d64a56851a4"
|
||||
],
|
||||
"folders": [],
|
||||
"folders_order": [],
|
||||
"timestamp": 0,
|
||||
"owner": "212120",
|
||||
"public": false,
|
||||
"requests": [
|
||||
{
|
||||
"folder": null,
|
||||
"id": "09af8dda-a9cb-20d2-5ee3-0a3023773a1a",
|
||||
"name": "GET http://localhost:5000/comments?postId=1",
|
||||
"dataMode": "params",
|
||||
"data": null,
|
||||
"rawModeData": null,
|
||||
"descriptionFormat": "html",
|
||||
"description": "",
|
||||
"headers": "",
|
||||
"method": "GET",
|
||||
"pathVariables": {},
|
||||
"url": "http://localhost:5000/comments?postId=1",
|
||||
"preRequestScript": null,
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"queryParams": [],
|
||||
"headerData": [],
|
||||
"pathVariableData": [],
|
||||
"responses": [],
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
|
||||
},
|
||||
{
|
||||
"id": "178f16da-c61b-c881-1c33-9d64a56851a4",
|
||||
"headers": "Authorization: Bearer {{AccessToken}}\n",
|
||||
"headerData": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{AccessToken}}",
|
||||
"enabled": true,
|
||||
"description": ""
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:5000/administration/configuration",
|
||||
"folder": null,
|
||||
"queryParams": [],
|
||||
"preRequestScript": null,
|
||||
"pathVariables": {},
|
||||
"pathVariableData": [],
|
||||
"method": "GET",
|
||||
"data": null,
|
||||
"dataMode": "params",
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"time": 1508849878025,
|
||||
"name": "GET http://localhost:5000/admin/configuration",
|
||||
"description": "",
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375",
|
||||
"responses": [],
|
||||
"isFromCollection": true,
|
||||
"collectionRequestId": "178f16da-c61b-c881-1c33-9d64a56851a4",
|
||||
"rawModeData": null,
|
||||
"descriptionFormat": null
|
||||
},
|
||||
{
|
||||
"id": "37bfa9f1-fe29-6a68-e558-66d125d2c96f",
|
||||
"headers": "",
|
||||
"headerData": [],
|
||||
"url": "http://localhost:5000/administration/connect/token",
|
||||
"folder": null,
|
||||
"queryParams": [],
|
||||
"preRequestScript": null,
|
||||
"pathVariables": {},
|
||||
"pathVariableData": [],
|
||||
"method": "POST",
|
||||
"data": [
|
||||
{
|
||||
"key": "client_id",
|
||||
"value": "admin",
|
||||
"type": "text",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"key": "client_secret",
|
||||
"value": "secret",
|
||||
"type": "text",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"key": "scope",
|
||||
"value": "admin",
|
||||
"type": "text",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"key": "username",
|
||||
"value": "admin",
|
||||
"type": "text",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"key": "password",
|
||||
"value": "secret",
|
||||
"type": "text",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"key": "grant_type",
|
||||
"value": "password",
|
||||
"type": "text",
|
||||
"enabled": true
|
||||
}
|
||||
],
|
||||
"dataMode": "params",
|
||||
"tests": "var jsonData = JSON.parse(responseBody);\npostman.setGlobalVariable(\"AccessToken\", jsonData.access_token);\npostman.setGlobalVariable(\"RefreshToken\", jsonData.refresh_token);",
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"time": 1506359585080,
|
||||
"name": "POST http://localhost:5000/admin/connect/token copy",
|
||||
"description": "",
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375",
|
||||
"responses": [],
|
||||
"isFromCollection": true,
|
||||
"collectionRequestId": "37bfa9f1-fe29-6a68-e558-66d125d2c96f",
|
||||
"rawModeData": null,
|
||||
"descriptionFormat": null
|
||||
},
|
||||
{
|
||||
"folder": null,
|
||||
"id": "4684c2fa-f38c-c193-5f55-bf563a1978c6",
|
||||
"name": "DELETE http://localhost:5000/posts/1",
|
||||
"dataMode": "params",
|
||||
"data": null,
|
||||
"rawModeData": null,
|
||||
"descriptionFormat": "html",
|
||||
"description": "",
|
||||
"headers": "",
|
||||
"method": "DELETE",
|
||||
"pathVariables": {},
|
||||
"url": "http://localhost:5000/posts/1",
|
||||
"preRequestScript": null,
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"queryParams": [],
|
||||
"headerData": [],
|
||||
"pathVariableData": [],
|
||||
"responses": [],
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
|
||||
},
|
||||
{
|
||||
"id": "5f308240-79e3-cf74-7a6b-fe462f0d54f1",
|
||||
"headers": "Authorization: Bearer {{AccessToken}}\n",
|
||||
"headerData": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{AccessToken}}",
|
||||
"description": "",
|
||||
"enabled": true
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:5000/administration/.well-known/openid-configuration",
|
||||
"folder": null,
|
||||
"queryParams": [],
|
||||
"preRequestScript": null,
|
||||
"pathVariables": {},
|
||||
"pathVariableData": [],
|
||||
"method": "GET",
|
||||
"data": null,
|
||||
"dataMode": "params",
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": {},
|
||||
"time": 1508849923518,
|
||||
"name": "GET http://localhost:5000/admin/.well-known/openid-configuration",
|
||||
"description": "",
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375",
|
||||
"responses": []
|
||||
},
|
||||
{
|
||||
"folder": null,
|
||||
"id": "a1c95935-ed18-d5dc-bcb8-a3db8ba1934f",
|
||||
@ -252,120 +252,120 @@
|
||||
"responses": [],
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
|
||||
},
|
||||
{
|
||||
"folder": null,
|
||||
"id": "c4494401-3985-a5bf-71fb-6e4171384ac6",
|
||||
"name": "GET http://localhost:5000/posts/1/comments",
|
||||
"dataMode": "params",
|
||||
"data": null,
|
||||
"rawModeData": null,
|
||||
"descriptionFormat": "html",
|
||||
"description": "",
|
||||
"headers": "",
|
||||
"method": "GET",
|
||||
"pathVariables": {},
|
||||
"url": "http://localhost:5000/posts/1/comments",
|
||||
"preRequestScript": null,
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"queryParams": [],
|
||||
"headerData": [],
|
||||
"pathVariableData": [],
|
||||
"responses": [],
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
|
||||
},
|
||||
{
|
||||
"folder": null,
|
||||
"id": "c45d30d7-d9c4-fa05-8110-d6e769bb6ff9",
|
||||
"name": "PATCH http://localhost:5000/posts/1",
|
||||
"dataMode": "raw",
|
||||
"data": [],
|
||||
"rawModeData": "{\n \"title\": \"gfdgsgsdgsdfgsdfgdfg\",\n}",
|
||||
"descriptionFormat": "html",
|
||||
"description": "",
|
||||
"headers": "",
|
||||
"method": "PATCH",
|
||||
"pathVariables": {},
|
||||
"url": "http://localhost:5000/posts/1",
|
||||
"preRequestScript": null,
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"queryParams": [],
|
||||
"headerData": [],
|
||||
"pathVariableData": [],
|
||||
"responses": [],
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
|
||||
},
|
||||
{
|
||||
"folder": null,
|
||||
"id": "e8825dc3-4137-99a7-0000-ef5786610dc3",
|
||||
"name": "POST http://localhost:5000/posts/1",
|
||||
"dataMode": "raw",
|
||||
"data": [],
|
||||
"rawModeData": "{\n \"userId\": 1,\n \"title\": \"test\",\n \"body\": \"test\"\n}",
|
||||
"descriptionFormat": "html",
|
||||
"description": "",
|
||||
"headers": "",
|
||||
"method": "POST",
|
||||
"pathVariables": {},
|
||||
"url": "http://localhost:5000/posts",
|
||||
"preRequestScript": null,
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"queryParams": [],
|
||||
"headerData": [],
|
||||
"pathVariableData": [],
|
||||
"responses": [],
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
|
||||
},
|
||||
{
|
||||
"folder": null,
|
||||
"id": "ea0ed57a-2cb9-8acc-47dd-006b8db2f1b2",
|
||||
"name": "GET http://localhost:5000/posts/1",
|
||||
"dataMode": "params",
|
||||
"data": null,
|
||||
"rawModeData": null,
|
||||
"descriptionFormat": "html",
|
||||
"description": "",
|
||||
"headers": "",
|
||||
"method": "GET",
|
||||
"pathVariables": {},
|
||||
"url": "http://localhost:5000/posts/1",
|
||||
"preRequestScript": null,
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"queryParams": [],
|
||||
"headerData": [],
|
||||
"pathVariableData": [],
|
||||
"responses": [],
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
|
||||
},
|
||||
{
|
||||
"folder": null,
|
||||
"id": "fddfc4fa-5114-69e3-4744-203ed71a526b",
|
||||
"name": "PUT http://localhost:5000/posts/1",
|
||||
"dataMode": "raw",
|
||||
"data": [],
|
||||
"rawModeData": "{\n \"userId\": 1,\n \"title\": \"test\",\n \"body\": \"test\"\n}",
|
||||
"descriptionFormat": "html",
|
||||
"description": "",
|
||||
"headers": "",
|
||||
"method": "PUT",
|
||||
"pathVariables": {},
|
||||
"url": "http://localhost:5000/posts/1",
|
||||
"preRequestScript": null,
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"queryParams": [],
|
||||
"headerData": [],
|
||||
"pathVariableData": [],
|
||||
"responses": [],
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
"folder": null,
|
||||
"id": "c4494401-3985-a5bf-71fb-6e4171384ac6",
|
||||
"name": "GET http://localhost:5000/posts/1/comments",
|
||||
"dataMode": "params",
|
||||
"data": null,
|
||||
"rawModeData": null,
|
||||
"descriptionFormat": "html",
|
||||
"description": "",
|
||||
"headers": "",
|
||||
"method": "GET",
|
||||
"pathVariables": {},
|
||||
"url": "http://localhost:5000/posts/1/comments",
|
||||
"preRequestScript": null,
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"queryParams": [],
|
||||
"headerData": [],
|
||||
"pathVariableData": [],
|
||||
"responses": [],
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
|
||||
},
|
||||
{
|
||||
"folder": null,
|
||||
"id": "c45d30d7-d9c4-fa05-8110-d6e769bb6ff9",
|
||||
"name": "PATCH http://localhost:5000/posts/1",
|
||||
"dataMode": "raw",
|
||||
"data": [],
|
||||
"rawModeData": "{\n \"title\": \"gfdgsgsdgsdfgsdfgdfg\",\n}",
|
||||
"descriptionFormat": "html",
|
||||
"description": "",
|
||||
"headers": "",
|
||||
"method": "PATCH",
|
||||
"pathVariables": {},
|
||||
"url": "http://localhost:5000/posts/1",
|
||||
"preRequestScript": null,
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"queryParams": [],
|
||||
"headerData": [],
|
||||
"pathVariableData": [],
|
||||
"responses": [],
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
|
||||
},
|
||||
{
|
||||
"folder": null,
|
||||
"id": "e8825dc3-4137-99a7-0000-ef5786610dc3",
|
||||
"name": "POST http://localhost:5000/posts/1",
|
||||
"dataMode": "raw",
|
||||
"data": [],
|
||||
"rawModeData": "{\n \"userId\": 1,\n \"title\": \"test\",\n \"body\": \"test\"\n}",
|
||||
"descriptionFormat": "html",
|
||||
"description": "",
|
||||
"headers": "",
|
||||
"method": "POST",
|
||||
"pathVariables": {},
|
||||
"url": "http://localhost:5000/posts",
|
||||
"preRequestScript": null,
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"queryParams": [],
|
||||
"headerData": [],
|
||||
"pathVariableData": [],
|
||||
"responses": [],
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
|
||||
},
|
||||
{
|
||||
"folder": null,
|
||||
"id": "ea0ed57a-2cb9-8acc-47dd-006b8db2f1b2",
|
||||
"name": "GET http://localhost:5000/posts/1",
|
||||
"dataMode": "params",
|
||||
"data": null,
|
||||
"rawModeData": null,
|
||||
"descriptionFormat": "html",
|
||||
"description": "",
|
||||
"headers": "",
|
||||
"method": "GET",
|
||||
"pathVariables": {},
|
||||
"url": "http://localhost:5000/posts/1",
|
||||
"preRequestScript": null,
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"queryParams": [],
|
||||
"headerData": [],
|
||||
"pathVariableData": [],
|
||||
"responses": [],
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
|
||||
},
|
||||
{
|
||||
"folder": null,
|
||||
"id": "fddfc4fa-5114-69e3-4744-203ed71a526b",
|
||||
"name": "PUT http://localhost:5000/posts/1",
|
||||
"dataMode": "raw",
|
||||
"data": [],
|
||||
"rawModeData": "{\n \"userId\": 1,\n \"title\": \"test\",\n \"body\": \"test\"\n}",
|
||||
"descriptionFormat": "html",
|
||||
"description": "",
|
||||
"headers": "",
|
||||
"method": "PUT",
|
||||
"pathVariables": {},
|
||||
"url": "http://localhost:5000/posts/1",
|
||||
"preRequestScript": null,
|
||||
"tests": null,
|
||||
"currentHelper": "normal",
|
||||
"helperAttributes": "{}",
|
||||
"queryParams": [],
|
||||
"headerData": [],
|
||||
"pathVariableData": [],
|
||||
"responses": [],
|
||||
"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1,19 +1,18 @@
|
||||
using System.Reflection.Metadata.Ecma335;
|
||||
using Ocelot.Requester;
|
||||
using Ocelot.Requester;
|
||||
|
||||
namespace Ocelot.ManualTest
|
||||
{
|
||||
using System.IO;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Ocelot.DependencyInjection;
|
||||
using Ocelot.Middleware;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
public class Program
|
||||
{
|
||||
@ -31,27 +30,28 @@ namespace Ocelot.ManualTest
|
||||
.AddJsonFile("ocelot.json", false, false)
|
||||
.AddEnvironmentVariables();
|
||||
})
|
||||
.ConfigureServices(s => {
|
||||
s.AddAuthentication()
|
||||
.AddJwtBearer("TestKey", x =>
|
||||
{
|
||||
x.Authority = "test";
|
||||
x.Audience = "test";
|
||||
});
|
||||
.ConfigureServices(s =>
|
||||
{
|
||||
s.AddAuthentication()
|
||||
.AddJwtBearer("TestKey", x =>
|
||||
{
|
||||
x.Authority = "test";
|
||||
x.Audience = "test";
|
||||
});
|
||||
|
||||
s.AddSingleton<QosDelegatingHandlerDelegate>((x, t) => new FakeHandler());
|
||||
s.AddOcelot()
|
||||
.AddDelegatingHandler<FakeHandler>(true);
|
||||
// .AddCacheManager(x =>
|
||||
// {
|
||||
// x.WithDictionaryHandle();
|
||||
// })
|
||||
// .AddOpenTracing(option =>
|
||||
// {
|
||||
// option.CollectorUrl = "http://localhost:9618";
|
||||
// option.Service = "Ocelot.ManualTest";
|
||||
// })
|
||||
// .AddAdministration("/administration", "secret");
|
||||
s.AddSingleton<QosDelegatingHandlerDelegate>((x, t) => new FakeHandler());
|
||||
s.AddOcelot()
|
||||
.AddDelegatingHandler<FakeHandler>(true);
|
||||
// .AddCacheManager(x =>
|
||||
// {
|
||||
// x.WithDictionaryHandle();
|
||||
// })
|
||||
// .AddOpenTracing(option =>
|
||||
// {
|
||||
// option.CollectorUrl = "http://localhost:9618";
|
||||
// option.Service = "Ocelot.ManualTest";
|
||||
// })
|
||||
// .AddAdministration("/administration", "secret");
|
||||
})
|
||||
.ConfigureLogging((hostingContext, logging) =>
|
||||
{
|
||||
@ -64,7 +64,7 @@ namespace Ocelot.ManualTest
|
||||
app.UseOcelot().Wait();
|
||||
})
|
||||
.Build()
|
||||
.Run();
|
||||
.Run();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,4 +13,4 @@
|
||||
"shouldRegisterWithEureka": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,345 +1,345 @@
|
||||
{
|
||||
"ReRoutes": [
|
||||
{
|
||||
"DownstreamPathTemplate": "/profile",
|
||||
"DownstreamScheme": "http",
|
||||
"UpstreamPathTemplate": "/profile",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 5001
|
||||
}
|
||||
],
|
||||
"QoSOptions": {
|
||||
"TimeoutValue": 360000
|
||||
"ReRoutes": [
|
||||
{
|
||||
"DownstreamPathTemplate": "/profile",
|
||||
"DownstreamScheme": "http",
|
||||
"UpstreamPathTemplate": "/profile",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 5001
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/v1/todo/",
|
||||
"DownstreamScheme": "http",
|
||||
"UpstreamPathTemplate": "/api/v1/todo/",
|
||||
"UpstreamHttpMethod": [ "Get", "Post" ],
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "lxtodo.azurewebsites.net",
|
||||
"Port": 80
|
||||
}
|
||||
|
||||
],
|
||||
"DownstreamHeaderTransform": {
|
||||
"Location": "{DownstreamBaseUrl}, {BaseUrl}"
|
||||
],
|
||||
"QoSOptions": {
|
||||
"TimeoutValue": 360000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/v1/todo/",
|
||||
"DownstreamScheme": "http",
|
||||
"UpstreamPathTemplate": "/api/v1/todo/",
|
||||
"UpstreamHttpMethod": [ "Get", "Post" ],
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "lxtodo.azurewebsites.net",
|
||||
"Port": 80
|
||||
}
|
||||
|
||||
],
|
||||
"DownstreamHeaderTransform": {
|
||||
"Location": "{DownstreamBaseUrl}, {BaseUrl}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/values",
|
||||
"DownstreamScheme": "https",
|
||||
"UpstreamPathTemplate": "/api/values",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "testapivalues.azurewebsites.net",
|
||||
"Port": 443
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 52876
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/identityserverexample",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/values",
|
||||
"DownstreamScheme": "https",
|
||||
"UpstreamPathTemplate": "/api/values",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "testapivalues.azurewebsites.net",
|
||||
"Port": 443
|
||||
}
|
||||
"AuthenticationOptions": {
|
||||
"AuthenticationProviderKey": "TestKey",
|
||||
"AllowedScopes": [
|
||||
"openid",
|
||||
"offline_access"
|
||||
]
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 52876
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/identityserverexample",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
},
|
||||
"AuthenticationOptions": {
|
||||
"AuthenticationProviderKey": "TestKey",
|
||||
"AllowedScopes": [
|
||||
"openid",
|
||||
"offline_access"
|
||||
]
|
||||
},
|
||||
"AddHeadersToRequest": {
|
||||
"CustomerId": "Claims[CustomerId] > value",
|
||||
"LocationId": "Claims[LocationId] > value",
|
||||
"UserType": "Claims[sub] > value[0] > |",
|
||||
"UserId": "Claims[sub] > value[1] > |"
|
||||
},
|
||||
"AddClaimsToRequest": {
|
||||
"CustomerId": "Claims[CustomerId] > value",
|
||||
"LocationId": "Claims[LocationId] > value",
|
||||
"UserType": "Claims[sub] > value[0] > |",
|
||||
"UserId": "Claims[sub] > value[1] > |"
|
||||
},
|
||||
"AddQueriesToRequest": {
|
||||
"CustomerId": "Claims[CustomerId] > value",
|
||||
"LocationId": "Claims[LocationId] > value",
|
||||
"UserType": "Claims[sub] > value[0] > |",
|
||||
"UserId": "Claims[sub] > value[1] > |"
|
||||
},
|
||||
"RouteClaimsRequirement": {
|
||||
"UserType": "registered"
|
||||
},
|
||||
"RequestIdKey": "OcRequestId"
|
||||
"AddHeadersToRequest": {
|
||||
"CustomerId": "Claims[CustomerId] > value",
|
||||
"LocationId": "Claims[LocationId] > value",
|
||||
"UserType": "Claims[sub] > value[0] > |",
|
||||
"UserId": "Claims[sub] > value[1] > |"
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/posts",
|
||||
"DownstreamScheme": "https",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 443
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"HttpHandlerOptions": {
|
||||
"AllowAutoRedirect": true,
|
||||
"UseCookieContainer": true
|
||||
},
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
"AddClaimsToRequest": {
|
||||
"CustomerId": "Claims[CustomerId] > value",
|
||||
"LocationId": "Claims[LocationId] > value",
|
||||
"UserType": "Claims[sub] > value[0] > |",
|
||||
"UserId": "Claims[sub] > value[1] > |"
|
||||
},
|
||||
"AddQueriesToRequest": {
|
||||
"CustomerId": "Claims[CustomerId] > value",
|
||||
"LocationId": "Claims[LocationId] > value",
|
||||
"UserType": "Claims[sub] > value[0] > |",
|
||||
"UserId": "Claims[sub] > value[1] > |"
|
||||
},
|
||||
"RouteClaimsRequirement": {
|
||||
"UserType": "registered"
|
||||
},
|
||||
"RequestIdKey": "OcRequestId"
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/posts",
|
||||
"DownstreamScheme": "https",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 443
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"HttpHandlerOptions": {
|
||||
"AllowAutoRedirect": true,
|
||||
"UseCookieContainer": true
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/posts/{postId}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts/{postId}",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"RequestIdKey": "ReRouteRequestId",
|
||||
"HttpHandlerOptions": {
|
||||
"AllowAutoRedirect": true,
|
||||
"UseCookieContainer": true,
|
||||
"UseTracing": true,
|
||||
"UseProxy": true
|
||||
},
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/posts/{postId}/comments",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts/{postId}/comments",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"HttpHandlerOptions": {
|
||||
"AllowAutoRedirect": true,
|
||||
"UseCookieContainer": true,
|
||||
"UseTracing": false
|
||||
},
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/comments",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/comments",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/posts",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts",
|
||||
"UpstreamHttpMethod": [ "Post" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/posts/{postId}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts/{postId}",
|
||||
"UpstreamHttpMethod": [ "Put" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/posts/{postId}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts/{postId}",
|
||||
"UpstreamHttpMethod": [ "Patch" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/posts/{postId}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts/{postId}",
|
||||
"UpstreamHttpMethod": [ "Delete" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/products",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/products",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
},
|
||||
"FileCacheOptions": { "TtlSeconds": 15 }
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/products/{productId}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/products/{productId}",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"FileCacheOptions": { "TtlSeconds": 15 }
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/products",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/products",
|
||||
"UpstreamHttpMethod": [ "Post" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/products/{productId}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/products/{productId}",
|
||||
"UpstreamHttpMethod": [ "Put" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
},
|
||||
"FileCacheOptions": { "TtlSeconds": 15 }
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/posts",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts/",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
},
|
||||
"FileCacheOptions": { "TtlSeconds": 15 }
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "www.bbc.co.uk",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/bbc/",
|
||||
"UpstreamHttpMethod": [ "Get" ]
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
],
|
||||
|
||||
"GlobalConfiguration": {
|
||||
"RequestIdKey": "ot-traceid"
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/posts/{postId}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts/{postId}",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"RequestIdKey": "ReRouteRequestId",
|
||||
"HttpHandlerOptions": {
|
||||
"AllowAutoRedirect": true,
|
||||
"UseCookieContainer": true,
|
||||
"UseTracing": true,
|
||||
"UseProxy": true
|
||||
},
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/posts/{postId}/comments",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts/{postId}/comments",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"HttpHandlerOptions": {
|
||||
"AllowAutoRedirect": true,
|
||||
"UseCookieContainer": true,
|
||||
"UseTracing": false
|
||||
},
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/comments",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/comments",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/posts",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts",
|
||||
"UpstreamHttpMethod": [ "Post" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/posts/{postId}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts/{postId}",
|
||||
"UpstreamHttpMethod": [ "Put" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/posts/{postId}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts/{postId}",
|
||||
"UpstreamHttpMethod": [ "Patch" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/posts/{postId}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts/{postId}",
|
||||
"UpstreamHttpMethod": [ "Delete" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/products",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/products",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
},
|
||||
"FileCacheOptions": { "TtlSeconds": 15 }
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/products/{productId}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/products/{productId}",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"FileCacheOptions": { "TtlSeconds": 15 }
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/products",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/products",
|
||||
"UpstreamHttpMethod": [ "Post" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
}
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/products/{productId}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/products/{productId}",
|
||||
"UpstreamHttpMethod": [ "Put" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
},
|
||||
"FileCacheOptions": { "TtlSeconds": 15 }
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/posts",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts/",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10,
|
||||
"TimeoutValue": 5000
|
||||
},
|
||||
"FileCacheOptions": { "TtlSeconds": 15 }
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "www.bbc.co.uk",
|
||||
"Port": 80
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/bbc/",
|
||||
"UpstreamHttpMethod": [ "Get" ]
|
||||
}
|
||||
],
|
||||
|
||||
"GlobalConfiguration": {
|
||||
"RequestIdKey": "ot-traceid"
|
||||
}
|
||||
}
|
||||
|
@ -7,8 +7,8 @@
|
||||
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
|
||||
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
|
||||
</handlers>
|
||||
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/>
|
||||
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
</configuration>
|
||||
|
Reference in New Issue
Block a user