Ekerot / arkimera-robotics-project

0 stars 0 forks source link

API - Returns array when it should be object #166

Closed tr222cj closed 7 years ago

tr222cj commented 7 years ago

When making a GET http://localhost:8080/companies/1/files/{{fileID}} the response contains data as an array. The request should always return only one file and thus not ever return an array:

Expected result: { "success": true, "code": 200, "time": "172017-05-17 04:10:36", "data": {FileInfo}, "message": "" }

Actual result: { "success": true, "code": 200, "time": "172017-05-17 04:10:36", "data": [ {FileInfo} ], "message": "" }