@app.route('<STR_LIT>', methods=['<STR_LIT:POST>'])<EOL>def add_device():
req = request.get_json()<EOL>success = False<EOL>if '<STR_LIT>' in req and '<STR_LIT:host>' in req:<EOL><INDENT>success = add(req['<STR_LIT>'], req['<STR_LIT:host>'], req.get('<STR_LIT>', '<STR_LIT>'), req.get('<STR_LIT>', '<STR_LIT>'), req.get('<STR_LIT>', <NUM_LIT>))<EOL><DEDENT>return jsonify(success=success)<EOL>
Add a device via HTTP POST.

    POST JSON in the following format ::

        {
            "device_id": "<your_device_id>",
            "host": "<address>:<port>",
            "adbkey": "<path to the adbkey file>"
        }