Fix #1405 (#1429)
Request bodies are not really supposed to be used in GET requests.
commit0c961f6ebbc930d585b644908fd97ab1384ca2ef
authorAlp <alpmestan@gmail.com>
dateTue 22 Jun 2021, 05:54 (5 years ago)
parentba30dd1
servant/src/Servant/API/ContentTypes.hs+1−1
@@ -20,7 +20,7 @@
2020--
2121-- Content-Types are used in `ReqBody` and the method combinators:
2222--
23−-- >>> type MyEndpoint = ReqBody '[JSON, PlainText] Book :> Get '[JSON, PlainText] Book
23+-- >>> type MyEndpoint = ReqBody '[JSON, PlainText] Book :> Put '[JSON, PlainText] Book
2424--
2525-- Meaning the endpoint accepts requests of Content-Type @application/json@
2626-- or @text/plain;charset-utf8@, and returns data in either one of those