From fc3b6fdb8b7ee00e16e8f9e3d73992de98fab191 Mon Sep 17 00:00:00 2001 From: TomPallister Date: Sun, 9 Feb 2020 18:15:24 +0000 Subject: [PATCH] fix docs formatting for http method transformation --- docs/features/methodtransformation.rst | 30 +++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/features/methodtransformation.rst b/docs/features/methodtransformation.rst index b94ebce46..5b1c15189 100644 --- a/docs/features/methodtransformation.rst +++ b/docs/features/methodtransformation.rst @@ -7,21 +7,21 @@ This achieved by setting the following ReRoute configuration: .. code-block:: json -{ - "DownstreamPathTemplate": "/{url}", - "UpstreamPathTemplate": "/{url}", - "UpstreamHttpMethod": [ - "Get" - ], - "DownstreamHttpMethod": "POST", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 53271 - } - ], -} + { + "DownstreamPathTemplate": "/{url}", + "UpstreamPathTemplate": "/{url}", + "UpstreamHttpMethod": [ + "Get" + ], + "DownstreamHttpMethod": "POST", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 53271 + } + ], + } The key property here is DownstreamHttpMethod which is set as POST and the ReRoute will only match on GET as set by UpstreamHttpMethod.