API Mises a jour Android

Endpoint recommande pour verifier la derniere version :

GET https://apk.praflix.ch/updates/latest.json

Exemple

https://apk.praflix.ch/updates/latest.json

Format JSON attendu

{
  "version": "PraflixAndroid_V1.2.3",
  "apk": {
    "url": "https://apk.praflix.ch/updates/apk/PraflixAndroid_V1.2.3.apk",
    "size": 24567890,
    "sha256": "2f1c0b1d...c93"
  },
  "releaseNotes": "Corrections Android",
  "releaseUrl": "https://apk.praflix.ch/updates/releases/PraflixAndroid_V1.2.3"
}
  

Convention de nommage APK : PraflixAndroid_V<version>.apk.

Regles cote application Android

En-tetes recommandes

Content-Type: application/json; charset=utf-8
Access-Control-Allow-Origin: *
Cache-Control: no-cache
  

Test rapide (dans votre navigateur)

Cliquez pour recuperer le JSON publie :

Tester fetch