Retrieve the client version
This function is an API endpoint that retrieves the version of the client. It copies the GitHub method of retrieving the latest release version. It is tagged with "software" for OpenAPI documentation.
It can be used by replacing the check_software_update() from the client. You can find the client code at rustdesk/src/common.rs ## Returns
Returns in the location header the URL of the latest release. something like https://api-server/api/releases/tag/1.2.6
Example
It is easy to modify the client code to use this API endpoint. this is how we can modify the client code to use this API endpoint.
<pre> // see <a href='https://github.com/sctg-development/sctgdesk/blob/481d3516fef1daa145d8044594187cb11959f8be/src/common.rs#L953L972'>Sample modification on github</a><br> let url=format!("{}/api/software/releases/latest",get_api_server("".to_owned(), "".to_owned())).to_owned();<br> log::info!("URL for checking software updates: {}", url);<br> </pre>Changes
Changed in 2 of the 11 revisions of this API.11
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 16 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲