MCPcopy Create free account
hub / github.com/aws-samples/aws-cdk-examples / get_data

Function get_data

python/ecs-serviceconnect/services/data/data.py:7–13  ·  view source on GitHub ↗

Returns some sample data from the backend.

()

Source from the content-addressed store, hash-verified

5
6@app.route('/data', methods=['GET'])
7def get_data():
8 """Returns some sample data from the backend."""
9 sample_data = {
10 "message": "Hello from Service B!",
11 "data": [1, 2, 3, 4, 5]
12 }
13 return jsonify(sample_data)
14@app.route('/', methods=['GET'])
15def main():
16 return jsonify({"message": "Hello from backend Flask!"}), 200

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected