Request bodies are not really supposed to be used in GET requests.
This commit is contained in:
parent
ba30dd1700
commit
0c961f6ebb
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
||||||
--
|
--
|
||||||
-- Content-Types are used in `ReqBody` and the method combinators:
|
-- Content-Types are used in `ReqBody` and the method combinators:
|
||||||
--
|
--
|
||||||
-- >>> type MyEndpoint = ReqBody '[JSON, PlainText] Book :> Get '[JSON, PlainText] Book
|
-- >>> type MyEndpoint = ReqBody '[JSON, PlainText] Book :> Put '[JSON, PlainText] Book
|
||||||
--
|
--
|
||||||
-- Meaning the endpoint accepts requests of Content-Type @application/json@
|
-- Meaning the endpoint accepts requests of Content-Type @application/json@
|
||||||
-- or @text/plain;charset-utf8@, and returns data in either one of those
|
-- or @text/plain;charset-utf8@, and returns data in either one of those
|
||||||
|
|
Loading…
Reference in a new issue