mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
simplex messaging api types and docs generation (#32)
* simplex messaging api types and docs generation * api endpoints annotations * endpoint titles * refactor
This commit is contained in:
committed by
GitHub
parent
22f2e318af
commit
cb39727088
@@ -0,0 +1,15 @@
|
||||
module Main where
|
||||
|
||||
import Simplex.Messaging.ServerAPI
|
||||
import Servant
|
||||
import Servant.Docs
|
||||
|
||||
apiDocs :: API
|
||||
apiDocs = docsWith
|
||||
defaultDocOptions
|
||||
[serverApiIntro]
|
||||
serverApiExtra
|
||||
(Proxy :: Proxy ServerAPI)
|
||||
|
||||
main :: IO ()
|
||||
main = (writeFile "../simplex-messaging-api.md" . markdown) apiDocs
|
||||
Reference in New Issue
Block a user