Allow select in OpenAPI for POST requests (#1375)

If you use `return=representation`, `select` is useful in `POST` requests.
It already works correctly, but is missing from the OpenAPI spec.
This commit is contained in:
Nathan Bouscal
2019-08-09 14:10:20 -05:00
committed by Steve Chávez
parent b87734343e
commit 57ebf43e85
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ makePathItem (t, cs, _) = ("/" ++ unpack tn, p $ tableInsertable t)
)
)
postOp = tOp
& parameters .~ map ref ["body." <> tn, "preferReturn"]
& parameters .~ map ref ["body." <> tn, "select", "preferReturn"]
& at 201 ?~ "Created"
patchOp = tOp
& parameters .~ map ref (rs <> ["body." <> tn, "preferReturn"])