API has 3 aviable requests:
-
Get list of apks
- HTTP GET request on /apks
- If everything went fine server response with http code 200 and JSON with info about apk
files in body
- If server has internal error it will throw http code 500
-
Download specific apk file
-
HTTP GET request on /apks/{id}
Id can be obtained from JSON (see method above)
- If everything went fine server response with http code 200 and byte data of apk file in body
- If id is invalid it will return http code 404
- If server has internal error it will throw http code 500
-
Search apk file based on given values
- HTTP GET request on /apks/download/{query}
- Queries are optional. If not given server will get from default values. Many queries need to
be separated by /. Order can be any
-
Available queries:
- Branch: master (default) or stage
- Build type: debug (default) or release
- Version: int of build number eg 460. Default is the latest one
If there are more than one results server will return the latest one based on build date
- If everything went fine server response with http code 301, apk file name in body and url to
download apk file in Location header
- If values are invalid it will return http code 404
- If server has internal error it will throw http code 500