Giter Site home page Giter Site logo

Comments (5)

xljiulang avatar xljiulang commented on May 25, 2024

做转发层的话,可以关注YARP项目

from webapiclient.

itbencn avatar itbencn commented on May 25, 2024

做转发层的话,可以关注YARP项目

第一个需求场景应该也常见呀,一举三得,既能内部代码调用,也能在线测试,还能提供给别人访问

from webapiclient.

EzrealJ avatar EzrealJ commented on May 25, 2024

首先回答第二点:

WebApiClient专注于作为客户端,从命名上可以看出,它是一个Client,而且它将会专注于Client,目前我们没有计划加入转发的功能。
另一个方面来讲,由于其基于HttpClient的特性,使它不可能作为一个合格的Proxy,在此不深入探讨。或许你可以引入更加专业的库例如Yarp来组合完成你的需求。

其次对于第一点:

我没有太理解你的意思,按照我粗略的理解,你是希望在声明了WebApiClient的接口之后,也能启动一个UI,类似于PostMan、ApiFox或者其它类似产品一样,可以快速的填写参数。不必编写单元测试代码即可调用上游接口吗? @itbencn

from webapiclient.

itbencn avatar itbencn commented on May 25, 2024

首先回答第二点:

WebApiClient专注于作为客户端,从命名上可以看出,它是一个Client,而且它将会专注于Client,目前我们没有计划加入转发的功能。 另一个方面来讲,由于其基于HttpClient的特性,使它不可能作为一个合格的Proxy,在此不深入探讨。或许你可以引入更加专业的库例如Yarp来组合完成你的需求。

其次对于第一点:

我没有太理解你的意思,按照我粗略的理解,你是希望在声明了WebApiClient的接口之后,也能启动一个UI,类似于PostMan、ApiFox或者其它类似产品一样,可以快速的填写参数。不必编写单元测试代码即可调用上游接口吗? @itbencn

第一点正确,也不用完全弄个新ui显示毕竟比较麻烦,可以考虑从兼容swagger ui方向靠

from webapiclient.

EzrealJ avatar EzrealJ commented on May 25, 2024

感谢提议,会讨论这一事项。

from webapiclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.