首页 开发技术 其它     /    interfake:用于原型和自动测试的虚假API-源码

interfake:用于原型和自动测试的虚假API-源码

上传者: weixin_42117150 | 上传时间:2023/6/5 20:58:17 | 文件大小:53KB | 文件类型:ZIP
interfake:用于原型和自动测试的虚假API-源码
Interfake:快速JSONAPIInterfake是一种工具,它允许任何平台的客户端应用程序的开发人员轻松创建要进行开发的虚拟HTTPAPI。
让我们从一个简单的例子开始。
开始吧如果您不想使用JavaScript方法创建InterfakeAPI,请继续阅读。
否则,请继续阅读。
在您的项目中安装Interfake。
npminstallinterfake--save让我们编写一个简单的假API:varInterfake=require('interfake');varinterfake=newInterfake();interfake.get('/whats-next').body({next:'morestuff'});interfake.listen(3000);// 本软件ID:15377616

文件下载

资源详情

[{"title":"(42个子文件53KB)interfake:用于原型和自动测试的虚假API-源码","children":[{"title":"interfake-master","children":[{"title":".travis.yml <span style='color:#111;'>71B</span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'>779B</span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'>1.44KB</span>","children":null,"spread":false},{"title":"readme.md <span style='color:#111;'>15.83KB</span>","children":null,"spread":false},{"title":"tests","children":[{"title":"loadFileTest-1.json <span style='color:#111;'>216B</span>","children":null,"spread":false},{"title":"loadFileTest-2.json <span style='color:#111;'>206B</span>","children":null,"spread":false},{"title":"http.test.js <span style='color:#111;'>1.36KB</span>","children":null,"spread":false},{"title":"javascript.test.js <span style='color:#111;'>33.85KB</span>","children":null,"spread":false},{"title":"loadFileTest-3.json <span style='color:#111;'>259B</span>","children":null,"spread":false},{"title":"fluent.test.js <span style='color:#111;'>44.99KB</span>","children":null,"spread":false},{"title":"static-test.txt <span style='color:#111;'>7B</span>","children":null,"spread":false}],"spread":true},{"title":"LICENCE.md <span style='color:#111;'>1.18KB</span>","children":null,"spread":false},{"title":"npm-shrinkwrap.json <span style='color:#111;'>43.72KB</span>","children":null,"spread":false},{"title":"CONTRIBUTING.md <span style='color:#111;'>5.70KB</span>","children":null,"spread":false},{"title":"examples-command-line","children":[{"title":"crud.json <span style='color:#111;'>1.46KB</span>","children":null,"spread":false},{"title":"get-and-post-with-after-response.json <span style='color:#111;'>685B</span>","children":null,"spread":false},{"title":"regexp-get.json <span style='color:#111;'>332B</span>","children":null,"spread":false},{"title":"simple-get.json <span style='color:#111;'>289B</span>","children":null,"spread":false},{"title":"modify-with-patch.json <span style='color:#111;'>578B</span>","children":null,"spread":false},{"title":"ranged-delay.json <span style='color:#111;'>260B</span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'>109B</span>","children":null,"spread":false},{"title":"examples-javascript","children":[{"title":"echo.js <span style='color:#111;'>622B</span>","children":null,"spread":false},{"title":"load-file-reload-unload.js <span style='color:#111;'>1.12KB</span>","children":null,"spread":false},{"title":"simple.js <span style='color:#111;'>608B</span>","children":null,"spread":false},{"title":"fluent-extends.js <span style='color:#111;'>891B</span>","children":null,"spread":false},{"title":"testwatch.js <span style='color:#111;'>225B</span>","children":null,"spread":false},{"title":"fluent-regex.js <span style='color:#111;'>1.22KB</span>","children":null,"spread":false},{"title":"regexp-url.js <span style='color:#111;'>1.15KB</span>","children":null,"spread":false},{"title":"fluent-echo.js <span style='color:#111;'>498B</span>","children":null,"spread":false},{"title":"fluent-web-page-test.html <span style='color:#111;'>527B</span>","children":null,"spread":false},{"title":"fluent-web-page-test.js <span style='color:#111;'>1.40KB</span>","children":null,"spread":false},{"title":"load-file-reload-unload.json <span style='color:#111;'>289B</span>","children":null,"spread":false},{"title":"fluent-crud.js <span style='color:#111;'>2.57KB</span>","children":null,"spread":false},{"title":"fluent-proxy.js <span style='color:#111;'>649B</span>","children":null,"spread":false},{"title":"fluent-simple.js <span style='color:#111;'>470B</span>","children":null,"spread":false},{"title":"load-file-watch.js <span style='color:#111;'>401B</span>","children":null,"spread":false}],"spread":false},{"title":"lib","children":[{"title":"fluent.js <span style='color:#111;'>3.64KB</span>","children":null,"spread":false},{"title":"debug.js <span style='color:#111;'>508B</span>","children":null,"spread":false},{"title":"server.js <span style='color:#111;'>11.20KB</span>","children":null,"spread":false},{"title":"route.js <span style='color:#111;'>7.57KB</span>","children":null,"spread":false},{"title":"cors.js <span style='color:#111;'>263B</span>","children":null,"spread":false},{"title":"grammar.pegjs <span style='color:#111;'>334B</span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明