-
1
Write a api on notepad , take 2 input and return the output as the sum of the 2 numbers.Times asked 2Official solution
SimpleNaya Flask route: URL, method, auth if needed, query, jsonify. Postman pehle.
Examiner number/filter change easy rakhna. CORS. Frontend tabhi jab bole.
Status codes sahi. Password JSON mein nahi.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Example
@app.route('/api/sum', methods=['POST']) def sum_num(): d = request.get_json() return jsonify(result=d['a'] + d['b'])Project example: resources.py new Resource. Test Thunder. Optional Vue fetch.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet