Bu yerda skript bor: # api.py import flask from flask import Flask, request, jsonify from flask_restful import Resource, Api # Create Flask application app = Flask(__name) api = Api(app) # Mocked data students_list = [ { 'id': 1, 'name': 'John' }, { 'id': 2, 'name': 'Mike' } ] # Create StudentsList class and route class StudentsList(Resource): def get(self): return students_list def post (((): student = {'name': request.form['name']} students_list.append(student) return student, 201.add_resource(StudentsList, '/students') # Create index. script if __py__name =='main': run.debug.__((True=True
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence