RXSM update server
25개 이상의 토픽을 선택하실 수 없습니다. 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 4 년 전
rxsmserver Add link to db download 4 년 전
scripts Add public-facing landing page 4 년 전
.gitignore Implement structure and release request 4 년 전
LICENSE Initial commit 4 년 전
README.md Add hit counter & README documentation 4 년 전
requirements.txt Implement update check 4 년 전

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.