- Endpoint 1 - POST apk
Description: Upload apk
URL: POST /api/applications
Note: file uploaded should be against key/parameter 'file'.
- Endpoint 2 GET all APKs
Description: Get all uploaded APKs
URL: GET /api/applications
- Endpoint 3 APK details
Description: Get apk details
URL: GET, PUT, DELETE /api/applications<id>
It's a Django project based on Python 2.7.9 and assumes that execution environment already has Python and PIP installed.
git clone [email protected]:pranavsingh321/androidVersion.git
cd androidVersion
docker-compose up
or
git clone [email protected]:pranavsingh321/androidVersion.git
cd androidVersion
pip install virtualenv
virtualenv ENV
source ENV/bin/activate
python -m pip install -U pip
pip install -r requirements.txt
cd apkInfo/
python manage.py makemigrations
python manage.py migrate --run-syncdb
gunicorn --bind 0.0.0.0:8080 apkInfo.wsgi&
Preferably use any Rest Client like Postman(Chrome), RestClient(Mozilla) to open http://127.0.0.1:8000/api/applications.
or
curl -X POST \
http://127.0.0.1:8000/api/applications \
-H 'cache-control: no-cache' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-H 'postman-token: e9f7cc0c-b7d7-4075-6833-407e1e75dc09' \
-F [email protected]