.net 调用swagger接口
1.引用swagger地址 :http://127.0.0.1:5000/swagger/v1/swagger.json
2.swaggerClient swaggerClient = new swaggerClient("http://127.0.0.1:8888/", new System.Net.Http.HttpClient());
var data= swaggerClient.GetAllAsync().Result;
共有 0 条评论