Skip to content

Instantly share code, notes, and snippets.

@rodcisal
Created March 9, 2021 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodcisal/3543cd84584efaabca32942eb81608d2 to your computer and use it in GitHub Desktop.
Save rodcisal/3543cd84584efaabca32942eb81608d2 to your computer and use it in GitHub Desktop.
```(echo -n '{"user":"victorbaez@docmovi.com", "userFirstName": "Victor", "userLastName": "Baez", "profileId": "30383539-7172-7a69-5765-04566b374b30", "profileFirstName": "Margarita", "profileLastName": "Vengas azocar", "ecgId": "TESTING_ID", "ecgDateTime": "Tue Mar 09 2021 15:56:46 GMT+0100 (Central European Standard Time)", "reference": "TESTING_REFERREENCE", "deviceSN": "TESTING_DEVICE_SN", "reports": [{ "type": "ecg-pdf", "data": "'; base64 /Users/rodrigocisternas/Desktop/ecgCK.pdf; echo '"}]}') | curl -H "Content-Type: application/json" -d @- http://localhost:3000/api/ecg```
Where ecgCK.pdf is a report downloaded using the API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment