request-to-swagger

时间:2024-06-07 03:17:17
【文件属性】:

文件名称:request-to-swagger

文件大小:113KB

文件格式:ZIP

更新时间:2024-06-07 03:17:17

JavaScript

要求招摇 根据现场演​​出/生产流量中真实的请求和响应示例生成文档。 快速概述 为您提供对您的应用程序的示例请求和响应的访问权: import requestToSwagger from "request-to-swagger" ; const request = { method : "GET" , url : "http://example.com/echo/hello" , headers : { } , body : null } ; const response = { statusCode : 200 , headers : { "Content-Type" : "application/json" } , body : `{ "response": "hello" }` } ; const initialSchema =


【文件预览】:
request-to-swagger-master
----.flowconfig(0B)
----jest()
--------setup.js(92B)
--------to-be-valid-swagger()
----yarn.lock(298KB)
----.eslintrc.js(117B)
----src()
--------examples()
--------test()
--------json-schema()
--------status-codes.js(2KB)
--------index.js(5KB)
----.neutrinorc.js(703B)
----flow-typed()
--------npm()
----.gitignore(34B)
----readme.md(5KB)
----package.json(814B)

网友评论