GET ./fisiere
Tags: simple-query
It is used to get information about a directory.
For images the parameter fsMeta will contain width and height. For videos the parameter fsMeta will contain width and height and duration. The dureation will be in miliseconds
GET parameters
| Name | Value Type | Validation | Details |
|---|---|---|---|
| fsRootID | int | Optional | The directory ID. |
| fsOwnerUaID | int | Optional | The user ID that created the directory. |
| fsOwnerClID | int | Optional | The class ID from whew the student/parent is part of that created the directory. |
| ascID | int | Optional | The school year ID when the directory was created. |
| cuChildCount | int | Optional | If present in the request, in the response a key named fsChildCount will be found that indicates the number of subfolders. |
| withPresignedThumbs | int | Optional | If present in the request, the thumbs url's will be present in th response with 10 minute valability. |
Validation
| Error Field | Error Code | Error Message |
|---|---|---|
| fsRootID | 101 | Invalid fsRootID or no permissions. |
Output example
{"meta": {"countTotal": "26","countData": "26","countOffset": "0"},"data": [{"fsID": "1313","fsTip": "1","fsNume": "jgfjhgk","fsExt": null,"fsSize": null,"fsMimeType": null,"fsInsertDate": "2018-11-26 14:09:46","fspToken": null,"fsShares": "0","fsComments": "0","fsUrl": null,"fsOwner": {"uaID": "5335","uaTip": "3","uaFirstName": "Elena","uaLastName": "Popescu","uaSex": "2","prefAvatar": "http://oss-dev.adservio.net:9000/avatar/5335-V7jGJAf5H0aRP1bn6Odr.png","functii": ["text_director","text_educator"]},"fsMeta": {"fsThumb": {"fsUrl": "https://127.0.0.1/test.jpg","fsWidth": "200","fsHeight": "100"}}},{"fsID": "1384","fsTip": "2","fsNume": "115323-UIAQh8wEO1WKuVHdMsma","fsExt": "png","fsSize": "1514415","fsMimeType": "image/png","fsInsertDate": "2018-12-05 16:19:31","fspToken": null,"fsShares": "0","fsComments": "2","fsUrl": "http://127.0.0.1/api/fisiere/download?fsID=1384&_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.WzE3NzQsNTMzNSwxNTQ0Nzk0NzE5XQ.kN5dUqusGBNkTgih7N6Cw3AMX1l0c2DvMoYk_5hpJF8","fsOwner": {"uaID": "5335","uaTip": "3","uaFirstName": "Elena","uaLastName": "Popescu","uaSex": "2","prefAvatar": "http://oss-dev.adservio.net:9000/avatar/5335-V7jGJAf5H0aRP1bn6Odr.png","functii": ["text_director","text_educator"]},"fsMeta": {"fsThumb": {"fsUrl": "https://127.0.0.1/test.jpg","fsWidth": "200","fsHeight": "100"},"fsWidth": "1920","fsHeight": "1080"}},{"fsID": "1381","fsTip": "2","fsNume": "21148434_1179766298796482_1943970404_n","fsExt": "mp4","fsSize": "62946","fsMimeType": "video/mp4","fsInsertDate": "2018-12-05 15:27:17","fspToken": null,"fsShares": "0","fsComments": "2","fsUrl": "http://127.0.0.1/api/fisiere/download?fsID=1381&_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.WzE3NzQsNTMzNSwxNTQ0Nzk0NzE5XQ.kN5dUqusGBNkTgih7N6Cw3AMX1l0c2DvMoYk_5hpJF8","fsOwner": {"uaID": "5335","uaTip": "3","uaFirstName": "Elena","uaLastName": "Popescu","uaSex": "2","prefAvatar": "http://oss-dev.adservio.net:9000/avatar/5335-V7jGJAf5H0aRP1bn6Odr.png","functii": ["text_director","text_educator"]},"fsMeta": {"fsThumb": {"fsUrl": "https://127.0.0.1/test.jpg","fsWidth": "200","fsHeight": "100"},"fsWidth": "1920","fsHeight": "1080","fsDuration": "3627"}}]}
