我在Asp .net 6中使用.net,当我使用ApiSwagger时,我的版本控制工作很好,但是当我想使用Ocelot门方式时,ocelot不识别我的{.net},并在.net中替换{.net}为字符串。
我的原版阿皮:http://localhost:5001/api/v1/Customer/test/1

但在奥塞洛之门方式:http://localhost:5050/api/v{Version}/Customer/test/1

发布于 2022-06-23 00:54:21
版本应如下所示:
“/api/{version}/{api}”
检查它是否被指定为"/v{Version}“。还检查{Version}或{version} (区分大小写)
https://stackoverflow.com/questions/71393171
复制相似问题