@analytics("api_response_time")
    def patch(self):
        from flask import request, jsonify

        data = request.get_json(force=True)

        if "rotate" in data:
            value = data["rotate"]
            self.rotate(value)

        if "tilt" in data:
            value = data["tilt"]
            self.tilt(value)

        if "lean" in data:
            value = data["lean"]
            self.lean(value)

        return jsonify(data)
dataset/ETHPy150Open gunthercox/Salvius/salvius/neck.py/Neck.patch/original