RXSM update server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

README.md 1.3KB

5 years ago
12345678910111213141516171819202122232425262728293031323334353637
  1. # rxsm-server
  2. RXSM update server for storing and retrieving updates.
  3. This is a single file application; all server functionality is stored in `rxsmserver/__init__.py`.
  4. ## API
  5. `/db`
  6. > **GET** request to download the sqlite database.
  7. > The database stores version information and a daily hit counter (requests to `/update` per day).
  8. > This is publicly accessibly by design, for transparency.
  9. `/update`
  10. > **POST** request to check for updates.
  11. >
  12. > The body of the request must be a JSON like
  13. >
  14. > `{'version':'[version number]', 'platform':'[platform]'}`
  15. >
  16. > The response will be a JSON like
  17. >
  18. > `{'status':200, 'reason':'Ok', 'url':'[url to download latest version]', 'out-of-date':true/false}`
  19. >
  20. > The status and reason may be different, and url and out-of-date may not be included if the request is invalid or an error occurs.
  21. `/release`
  22. > **POST** request to create/update a new release.
  23. > This is password-protected to prevent users from adding malicious code into releases.
  24. >
  25. > The body of the request must be a JSON like
  26. >
  27. > `{'token':'[server password]', 'version':'[version number]', 'platform':'[platform]', 'url':'[url to download version]'}`
  28. >
  29. > The response will be a JSON like
  30. >
  31. > `{'status':200, 'reason':'Version created successfully'}`
  32. >
  33. > The status and reason may be different, especially if the request is invalid or an error occurs.