-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
57 lines (34 loc) · 1.28 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from flask import Flask, jsonify, request
app = Flask(__name__)
@app.route('/teams', methods=['POST'])
def register_teams():
# Get data from the POST body
request_data = request.get_json()
return_dict = {"example": "Register teams!"}
return jsonify(return_dict)
@app.route('/employees', methods=['POST'])
def register_employees():
# Get data from the POST body
request_data = request.get_json()
return_dict = {"example": "Register employees!"}
return jsonify(return_dict)
@app.route('/recommendations', methods=['POST'])
def register_recommendations():
# Get data from the POST body
request_data = request.get_json()
return_dict = {"example": "Register recommendations!"}
return jsonify(return_dict)
@app.route('/teams', methods=['GET'])
def get_all_teams():
return_dict = {"example": "'List teams!'"}
return jsonify(return_dict)
@app.route('/recommendations', methods=['GET'])
def get_all_recommendations():
return_dict = {"example": "List recommendations!"}
return jsonify(return_dict)
@app.route('/recommendations/employees', methods=['GET'])
def get_all_employees_with_recommendations():
return_dict = {"example": "List employees!"}
return jsonify(return_dict)
if __name__ == "__main__":
app.run(debug=True)