

@fapp.route('/api/pet/<int:pet_id>', methods=['DELETE', 'GET'])
def pet_id(pet_id):
    if (request.method == 'DELETE'):
        if (not pet_db.delete_(int(pet_id))):
            return ('', 400)
        return ('', 200)
    elif (request.method == 'GET'):
        pet = pet_db.read_(int(pet_id))
        if (not pet):
            return ('', 404)
        else:
            return (json.jsonify(pet), 200)

dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/tests/contrib/client/test_flask.py pet_id/original