Closed tr222cj closed 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": "" }
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": "" }