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.
NGnius (Graham) fd05d1f7d8 Add link to db download 5 years ago
rxsmserver Add link to db download 5 years ago
scripts Add public-facing landing page 5 years ago
.gitignore Implement structure and release request 5 years ago
LICENSE Initial commit 5 years ago
README.md Add hit counter & README documentation 5 years ago
requirements.txt Implement update check 5 years ago

README.md

rxsm-server

RXSM update server for storing and retrieving updates. This is a single file application; all server functionality is stored in rxsmserver/__init__.py.

API

/db

GET request to download the sqlite database. The database stores version information and a daily hit counter (requests to /update per day). This is publicly accessibly by design, for transparency.

/update

POST request to check for updates.

The body of the request must be a JSON like

{'version':'[version number]', 'platform':'[platform]'}

The response will be a JSON like

{'status':200, 'reason':'Ok', 'url':'[url to download latest version]', 'out-of-date':true/false}

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.

/release

POST request to create/update a new release. This is password-protected to prevent users from adding malicious code into releases.

The body of the request must be a JSON like

{'token':'[server password]', 'version':'[version number]', 'platform':'[platform]', 'url':'[url to download version]'}

The response will be a JSON like

{'status':200, 'reason':'Version created successfully'}

The status and reason may be different, especially if the request is invalid or an error occurs.