Add all supported successful responses
This commit is contained in:
@@ -175,12 +175,15 @@ makePathItem (t, cs, _) = ("/" ++ unpack tn, p $ tableInsertable t)
|
|||||||
& at 200 ?~ "OK"
|
& at 200 ?~ "OK"
|
||||||
getOp = tOp
|
getOp = tOp
|
||||||
& parameters .~ map Inline (makeGetParams cs ++ rs)
|
& parameters .~ map Inline (makeGetParams cs ++ rs)
|
||||||
|
& at 206 ?~ "Partial Content"
|
||||||
postOp = tOp
|
postOp = tOp
|
||||||
& consumes ?~ makeMimeList [ApplicationJSON, TextCSV]
|
& consumes ?~ makeMimeList [ApplicationJSON, TextCSV]
|
||||||
& parameters .~ map Inline (makePostParams tn)
|
& parameters .~ map Inline (makePostParams tn)
|
||||||
|
& at 201 ?~ "Created"
|
||||||
patchOp = tOp
|
patchOp = tOp
|
||||||
& consumes ?~ makeMimeList [ApplicationJSON, TextCSV]
|
& consumes ?~ makeMimeList [ApplicationJSON, TextCSV]
|
||||||
& parameters .~ map Inline (makePostParams tn ++ rs)
|
& parameters .~ map Inline (makePostParams tn ++ rs)
|
||||||
|
& at 204 ?~ "No Content"
|
||||||
deletOp = tOp
|
deletOp = tOp
|
||||||
& parameters .~ map Inline (makeDeleteParams ++ rs)
|
& parameters .~ map Inline (makeDeleteParams ++ rs)
|
||||||
pr = (mempty :: PathItem) & get ?~ getOp
|
pr = (mempty :: PathItem) & get ?~ getOp
|
||||||
|
|||||||
Reference in New Issue
Block a user