Git Product home page Git Product logo

Comments (13)

TommyLemon avatar TommyLemon commented on May 19, 2024 1

我想通过yAPI去导入测试用例,我看通过yapi导入的时候都是忽略域名的,那默认都是使用设置里的host,请问跨域的如何进行上传,我试了一下没有成功。提示开启跨域代理,开启后提示非debug模式不允许使用服务器代理。

apijson.Log.DEBUG = true
https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/boot/DemoApplication.java#L93

https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/boot/DemoApplication.java#L93
image

from apiauto.

TommyLemon avatar TommyLemon commented on May 19, 2024

首页的快速上手就包含了私有化部署的文档
https://github.com/TommyLemon/APIAuto#%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B

APIAuto 及 APIJSON 都是免费开源,且都用 Apache License 2.0 开源协议,对商用和非商用都很友好

from apiauto.

wuyou10206 avatar wuyou10206 commented on May 19, 2024

你好,非常感谢,我的理解APIAuto这个工具是针对当前正在开发的项目后端(可以配合APIJSON)使用的是吧,方便进行接口测试。
我想问一下这个工具是否可以针对已经开发好的不同的项目的接口(域名也不同)进行测试。
再次感谢 @TommyLemon

from apiauto.

TommyLemon avatar TommyLemon commented on May 19, 2024

只要是一个能访问的 HTTP/GRPC API 都可以,和项目、域名、是否正在开发等都无关,主页就提供了 百度、搜狗、抖音 的接口调用示例

from apiauto.

TommyLemon avatar TommyLemon commented on May 19, 2024

你提的问题很奇怪,提问题前麻烦先认真看下文档、体验一下功能谢谢

from apiauto.

wuyou10206 avatar wuyou10206 commented on May 19, 2024

我想通过yAPI去导入测试用例,我看通过yapi导入的时候都是忽略域名的,那默认都是使用设置里的host,请问跨域的如何进行上传,我试了一下没有成功。提示开启跨域代理,开启后提示非debug模式不允许使用服务器代理。
或者有更详细的通过yapi上传的文档或demo,多谢。 @TommyLemon
image

image image

from apiauto.

TommyLemon avatar TommyLemon commented on May 19, 2024

另外需要把 YApi 的 Cookie 填到 APIAuto 请求头输入框
image

from apiauto.

wuyou10206 avatar wuyou10206 commented on May 19, 2024

您好,跨域的问题已经解决了,出现了一个新的问题就是我按照要求填写了请求头但是好像没有生效,一直提示要登录,同样的Cookie我在postman上使用是可以的

我使用的是APIJSONBoot 这个demo, 这个APIJSONBoot-MultiDataSource项目需要Java jdk11版本

image

from apiauto.

wuyou10206 avatar wuyou10206 commented on May 19, 2024

我还想问一下,从YAPI导入成功后,会保存到数据库中么,多谢 @TommyLemon

from apiauto.

TommyLemon avatar TommyLemon commented on May 19, 2024

您好,跨域的问题已经解决了,出现了一个新的问题就是我按照要求填写了请求头但是好像没有生效,一直提示要登录,同样的Cookie我在postman上使用是可以的

我使用的是APIJSONBoot 这个demo, 这个APIJSONBoot-MultiDataSource项目需要Java jdk11版本

image

除了 Cookie 还没有别的鉴权参数(请求头/URL query/Form 表单/JSON Body)?

或者 Cookie 过期也有问题,需要重新登录 YApi 并抓取 Cookie。

另外推荐 APIJSONBoot-MultiDataSource,代码最新,或者把 DemoController.delegate 相关代码同步到 APIJSONBoot

from apiauto.

TommyLemon avatar TommyLemon commented on May 19, 2024

我还想问一下,从YAPI导入成功后,会保存到数据库中么,多谢 @TommyLemon

会,除了本地保存的,其它都是存数据库的

from apiauto.

wuyou10206 avatar wuyou10206 commented on May 19, 2024

好的,我在试试,十分感谢

from apiauto.

TommyLemon avatar TommyLemon commented on May 19, 2024

@wuyou10206 如果 YApi 也是你们自己拿源码部署的,那把 YApi 的登录鉴权关掉就行了

from apiauto.

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.