Open vince7lf opened 1 year ago
requête :
POST /test-mapserver6/requestDownload HTTP/1.1
Host: localhost:7780
Connection: keep-alive
Content-Length: 55
sec-ch-ua: "Google Chrome";v="107", "Chromium";v="107", "Not=A?Brand";v="24"
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: application/json; charset=UTF-8
X-Requested-With: XMLHttpRequest
sec-ch-ua-mobile: ?0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
sec-ch-ua-platform: "Windows"
Origin: http://localhost:7780
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: http://localhost:7780/test-mapserver6/configuration/dataDownload
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9,fr-CA;q=0.8,fr;q=0.7
Cookie: skipTutorial=true; skipAnnotationConfirmation=true; username=admin; session_token="!iCRQ4xyosiwP+WPeU3yFVg==?gASVbAAAAAAAAACMDXNlc3Npb25fdG9rZW6UjFZZa2RPRW52X0pTcjNxSWI0aGV2Z2Rtb3FCeHlzWF9tcG5kd1FRSFpUVXM1ZmE4S3hGUkQzOVRSTnBVMnNIUmt3ZlBSZ1NPWTc5bldJdjVDZDRfRUZqd5SGlC4="; cookieMsgSuppressed=true
response :
HTTP/1.0 200 OK
Date: Mon, 14 Nov 2022 19:55:35 GMT
Server: WSGIServer/0.2 CPython/3.7.13
Content-Type: application/json
Content-Length: 129
{"response": {"result": "aide_query_2022-11-14_19-55-32.txt", "status": "SUCCESS", "meta": "aide_query_2022-11-14_19-55-32.txt"}}
URL : http://localhost:7780/test-mapserver6/downloadData/aide_query_2022-11-14_19-55-32.txt
File location on server : /app/tmp/aide/downloadRequests/test-mapserver6/aide_query_2022-11-14_19-55-32.txt
fait voir modules/LabelUI/static/js/dataHandler.js _exportShareAnnotations
Rendre accessible public le fichier des annotations .csv txt À chaque sauvegarde générer le fichier des exportations et le déposer sous le répertoire public du projet/image