We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cfe4869 + 54812a9 commit 7263809Copy full SHA for 7263809
servant-server/src/Servant/Server.hs
@@ -110,7 +110,7 @@ import Servant.Server.Internal
110
-- Example:
111
--
112
-- > type MyApi = "books" :> Get '[JSON] [Book] -- GET /books
113
--- > :<|> "books" :> ReqBody Book :> Post '[JSON] Book -- POST /books
+-- > :<|> "books" :> ReqBody '[JSON] Book :> Post '[JSON] Book -- POST /books
114
-- >
115
-- > server :: Server MyApi
116
-- > server = listAllBooks :<|> postBook
0 commit comments