【文件属性】:
文件名称:swagger:此存储库已移至 https
文件大小:22KB
文件格式:ZIP
更新时间:2021-06-09 12:18:59
Haskell
Swagger 规范实现
这个库实现了并提供了一些支持来方便地构建 API 描述。 这里有些例子:
模型定义
import Data.Swagger.Build.Api
foo :: Model
foo = defineModel " Foo " $ do
description " Some Foo model "
property " header " bytes' $
description " Foo's header property "
bar :: Model
bar = defineModel " Bar " $ do
description " Some other model "
property " header " (string $ enum [ " bar " , " baz " ]) $
des
【文件预览】:
swagger-master
----.gitignore(114B)
----src()
--------Data()
----swagger.cabal(2KB)
----LICENSE(16KB)
----README.md(2KB)
----test()
--------Main.hs(100B)
--------Test()