Introduce new 'Prefer' header, params=single-object (#739)
This commit is contained in:
@@ -215,7 +215,8 @@ app dbStructure conf apiRequest =
|
||||
Right (q, cq) -> respondToRange $ do
|
||||
let p = V.head payload
|
||||
singular = iPreferSingular apiRequest
|
||||
row <- H.query () (callProc qi p q cq topLevelRange shouldCount singular)
|
||||
paramsAsSingleObject = iPreferSingleObjectParameter apiRequest
|
||||
row <- H.query () (callProc qi p q cq topLevelRange shouldCount singular paramsAsSingleObject)
|
||||
let (tableTotal, queryTotal, body) =
|
||||
fromMaybe (Just 0, 0, emptyArray) row
|
||||
(status, contentRange) = rangeHeader queryTotal tableTotal
|
||||
|
||||
Reference in New Issue
Block a user