1. {
    2. "ReRoutes": [
    3. {
    4. "DownstreamPathTemplate": "/api/WeatherForecast/GetList",
    5. "DownstreamScheme": "http",
    6. "DownstreamHostAndPorts": [
    7. {
    8. "Host": "localhost",
    9. "Port": 5000
    10. }
    11. ],
    12. "UpstreamPathTemplate": "/GetList",
    13. "UpstreamHttpMethod": [ "Get" ]
    14. },
    15. {
    16. "DownstreamPathTemplate": "/{everything}",
    17. "DownstreamScheme": "http",
    18. "DownstreamHostAndPorts": [
    19. {
    20. "Host": "localhost",
    21. "Port": 5000
    22. }
    23. ],
    24. "UpstreamPathTemplate": "/{everything}",
    25. "UpstreamHttpMethod": [ "Post" ]
    26. },
    27. {
    28. "DownstreamPathTemplate": "/api/WeatherForecast/GetModel?id={s1}",
    29. "DownstreamScheme": "http",
    30. "DownstreamHostAndPorts": [
    31. {
    32. "Host": "localhost",
    33. "Port": 5000
    34. }
    35. ],
    36. "UpstreamPathTemplate": "/GetModel?id={s1}",
    37. "UpstreamHttpMethod": [ "Get" ]
    38. }
    39. ]
    40. }