Accenture interview question

Can you explain how a REST API works, and how you would create one using Python?Can you explain how a REST API works, and how you would create one using Python?

Interview Answer

Anonymous

11 Jul 2025

@app.route('/employees', methods=['GET']) def get_employees(): return jsonify({"employees": employee_list})