@@ -154,9 +154,6 @@ postApi allHeaders file restUrl fileId = runReq (defaultHttpConfig {httpConfigCh
154
154
(ReqBodyJson payload) -- use built-in options or add your own
155
155
bsResponse -- specify how to interpret response
156
156
(header " Authorization" (getOneHeader allHeaders " Authorization" ) <> port 8080 )
157
- liftIO $ logStdOut (show (http (DataText. pack restUrl) /: " api" /: " v1" /: " filesystem" /: DataText. pack fileId /: " upload" ))
158
- liftIO $ logStdOut $ S8. unpack (fileContentType file)
159
- liftIO $ logStdOut $ S8. unpack (responseBody r)
160
157
return (responseBody r, responseStatusCode r, responseStatusMessage r)
161
158
162
159
download :: Application
@@ -229,7 +226,6 @@ getApi allHeaders restUrl = runReq (defaultHttpConfig {httpConfigCheckResponse =
229
226
bsResponse -- specify how to interpret response
230
227
(header " X-FF-IDS" (getOneHeader allHeaders " X-FF-IDS" ) <> header " Authorization" (getOneHeader allHeaders " Authorization" ) <> port 8080 ) -- PORT !!
231
228
-- mempty -- query params, headers, explicit port number, etc.
232
- liftIO $ logStdOut $ S8. unpack (responseBody r)
233
229
return (responseBody r, responseStatusCode r, responseStatusMessage r)
234
230
235
231
delete :: Application
@@ -271,8 +267,6 @@ deleteApi allHeaders restUrl fileId = runReq (defaultHttpConfig {httpConfigCheck
271
267
NoReqBody
272
268
bsResponse
273
269
(header " Authorization" (getOneHeader allHeaders " Authorization" ) <> port 8080 ) -- parentID not in Headers
274
- liftIO $ logStdOut $ S8. unpack (responseBody r)
275
- liftIO $ logStdOut (show (http (DataText. pack restUrl) /: " api" /: " v1" /: " filesystem" /: DataText. pack fileId /: " delete" ) )
276
270
return (responseBody r, responseStatusCode r, responseStatusMessage r)
277
271
278
272
health :: Application
0 commit comments