GET ./foto/detalii
It is used to get the details about a photo.
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 |
---|---|---|---|
fsID | int | Requried | File ID. |
cuPath | int | Optional | If present in the request, in the response a key named fsPath will be found that indicates the path of the file. |
Validation
Error Field | Error Code | Error Message |
---|---|---|
fsID | 101 | Invalid fsID or access denied. |
Output example
{"fsID": "260","fsTip": "2","fsNume": "ceva","fsExt": "ceva","fsMimeType": "inode/x-empty","fsSize": "0","fsInsertDate": "2017-11-24 11:39:26","fsUrl": "http://127.0.0.1/api/fisiere/download?fsID=179&_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.WzE3NzQsNTMzNSwxNTQ0Nzk0NzE5XQ.kN5dUqusGBNkTgih7N6Cw3AMX1l0c2DvMoYk_5hpJF8","fspShare": {"fspToken": "jrXWxPYUML","fspInsertDate": "2018-11-06 14:49:00","fspUrl": "http://127.0.0.1/d/jrXWxPYUML"},"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"]},"fsShare": [{"fssgID": "274","fssgType": "g-parinti-all","fssgCount": "87"},{"fssgID": "270","fssgType": "g-elevi-all","fssgCount": "82"},{"fssgID": "275","fssgType": "g-parinti-ast","fssgCount": "61","fssgDetails": {"astID": "11","astNume": "Clasa a XI-a"},"fssgOwner": {"uaID": "5335"}},{"fssgID": "278","fssgType": "g-cadre-all","fssgCount": "47"},{"fssgID": "276","fssgType": "g-parinti-cl","fssgCount": "31","fssgDetails": {"clID": "276","clNume": "XI A"},"fssgOwner": {"uaID": "5335"}},{"fssgID": "279","fssgType": "g-cadre-ast","fssgCount": "27","fssgDetails": {"astID": "11","astNume": "Clasa a XI-a"},"fssgOwner": {"uaID": "5335"}},{"fssgID": "280","fssgType": "g-cadre-cl","fssgCount": "13","fssgDetails": {"clID": "276","clNume": "XI A"},"fssgOwner": {"uaID": "5335"}},{"fssgID": "281","fssgType": "g-cadre-mat","fssgCount": "7","fssgDetails": {"matID": "100","matNume": "Dirigenţie"},"fssgOwner": {"uaID": "5335"}},{"fssgID": "282","fssgType": "g-cadre-cf","fssgCount": "4","fssgDetails": {"cfID": "16","cfNume": "text_director"},"fssgOwner": {"uaID": "5335"}},{"fssgID": "284","fssgType": "g-inst","fssgCount": "4","fssgDetails": {"instID": "1","instNume": "Primaria Iasi"},"fssgOwner": {"uaID": "5335"}},{"fssgID": "271","fssgType": "g-elevi-ast","fssgCount": "1","fssgDetails": {"astID": "2","astNume": "Clasa a II-a"},"fssgOwner": {"uaID": "5335"}},{"fssgID": "272","fssgType": "g-elevi-cl","fssgCount": "1","fssgDetails": {"clID": "279","clNume": "II B"},"fssgOwner": {"uaID": "5335"}},{"fssgID": "273","fssgType": "1","fssgCount": "1","fssgDetails": {"uaID": "152252","uaTip": "1","uaFirstName": "Daniel","uaLastName": "Poroh","uaSex": "1","prefAvatar": "http://oss-dev.adservio.net:9000/avatar/152252-Ufp5e18TLmVtM7zIQvrF.jpg","clasa": {"clID": "279","clNume": "II B","ascIsActiv": "1","ascNume": "2016/2017"}},"fssgOwner": {"uaID": "5335"}},{"fssgID": "277","fssgType": "2","fssgCount": "1","fssgDetails": {"uaID": "120222","uaTip": "2","uaFirstName": "Onisoru (p)","uaLastName": "Daniel","uaSex": null,"prefAvatar": null,"elev": {"elevID": "120221","elevPrenume": "Teodora","elevNume": "Avdei","elevSex": "2"},"clasa": {"clID": "276","clNume": "XI A","ascIsActiv": "1","ascNume": "2016/2017"}},"fssgOwner": {"uaID": "5335"}},{"fssgID": "283","fssgType": "3","fssgCount": "1","fssgDetails": {"uaID": "152125","uaTip": "3","uaFirstName": "Profesor","uaLastName": "Alex","uaSex": "2","prefAvatar": "http://oss-dev.adservio.net:9000/avatar/152125-AIDvCByW4LjfmtPG8Sx2.jpg","functii": ["text_profesor"]},"fssgOwner": {"uaID": "5335"}},{"fssgID": "285","fssgType": "5","fssgCount": "1","fssgDetails": {"uaID": null,"uaTip": "5","uaFirstName": "Test","uaLastName": "Inspector","uaSex": "1","prefAvatar": "uploads/avatar//115299_0zDGKK.jpg","institutie": {"instID": "1","instNume": "Primaria Iasi"}},"fssgOwner": {"uaID": "5335"}},{"fssgID": "286","fssgType": "3","fssgCount": "1","fssgDetails": {"uaID": "5345","uaTip": "3","uaFirstName": "Adservio","uaLastName": "Echipa","uaSex": "1","prefAvatar": "http://oss-dev.adservio.net:9000/avatar/5345-4Nwg0MXR8J7eCoGYriVE.png","functii": ["text_reprezentant_adservio"]},"fssgOwner": {"uaID": "5335"}}],"fsHasSharedParent": false,"fsHasSharedChild": false,"fsPath": [{"fsID": "1154","fsTip": "1","fsNume": "T3","fsRootID": "1152","fsExt": null,"fsMimeType": null,"fsSize": null,"fsInsertDate": "2018-10-25 13:37:23","fsSharedParent": false},{"fsID": "1152","fsTip": "1","fsNume": "T1","fsRootID": "0","fsExt": null,"fsMimeType": null,"fsSize": null,"fsInsertDate": "2018-10-25 13:37:11","fsSharedParent": false}],"fsReported": {"fsrID": "10","fsrInsertDate": "2020-02-25 15:02:59"}}