Télécharger 

TELECHARGER UN DOCUMENT

Cette méthode retourne le fichier demandé si l'utilisateur y a accès.


URLS DISPONIBLES

MÉTHODE URL
GET /downloadfile/:token/:id
Url de base + token + l'id du document demandé.

PARAMÈTRES D'URL

NOM REQUIS DESCRIPTION
Token requis Le token est requis et est fourni par l'api, voir la documentation sur le token pour plus de renseignements.
ID requis Ce paramètre permet de préciser l'ID du document demandé.


RÉSULTAT

Le retour contient le fichier demandé au protocole HTTP.

Les headers HTTP contiennent diverses informations concernant le fichier (nom, taille, type MIME, ...).
                Date: Fri, 26 Aug 2022 12:50:54 GMT
                Server: Apache/2.4.52 (Ubuntu)
                Access-Control-Allow-Origin: *
                Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
                Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
                Cache-Control: public, must-revalidate, max-age=0
                Pragma: no-cache
                Accept-Ranges: bytes
                Content-Length: 33162
                Content-Range: bytes 0-33162/33162
                Content-Disposition: attachment; filename=CDC-Simple ERP-v1.0.20220826105718657.odt
                Content-Transfer-Encoding: binary
                Last-Modified: Fri, 26 Aug 2022 14:50:55 +0200
                Connection: close
                Content-Type: application/vnd.oasis.opendocument.text