0 I gave the method to be called by another person through ocelot, you need to insert json to this method ocelot: { "DownstreamPathTemplate": "/api/ClientPortalApi/ClientRequest_ISOOFER?contractDate={contractDate}", "UpstreamHttpMethod": [ "Get" ], "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "skracanieumow.dev.ad.uclp", "Port": 80 } ], "UpstreamPathTemplate": "/ContractShortening/IsOffer/{contractDate}" } encoded json %7b%0d%0a++%22contractNumber%22%3a+%2222%2f0546%2f21%22%2c%0d%0a++%22month%22%3a+10%2c%0d%0a++%22year%22%3a+2022%0d%0a%7d First way - his try (another person) ContractShortening/IsOffer/%7b%0d%0a++%22contractNumber%22%3a+%2222%2f0546%2f21%22%2c%0d%0a++%22month%22%3a+10%2c%0d%0a++%22year%22%3a+2022%0d%0a%7d and it dont work - 404 from another company / 400 if I try
Second way - I try https://ocelot.dev.ad.uclp/ContractShortening/IsOffer/%7BcontractDate%7D?contractDate=%7b%0d%0a++"contractNumber"%3a+"22%2f0546%2f21"%2c%0d%0a++"month"%3a+10%2c%0d%0a++"year"%3a+2022%0d%0a%7d and it work - i add %7BcontractDate%7D?contractDate= //-- so {contractDate}?contractDate= Questions: is the way it passes the json to the method wrong? can anything be done better here? should I give them this code? {contractDate}?contractDate= should i do something different?
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)