MCPcopy Create free account
hub / github.com/caesarHQ/textSQL / get_discoverability

Function get_discoverability

api/app/api/discoverability_routes.py:15–36  ·  view source on GitHub ↗

Get discoverability information for the app

(app)

Source from the content-addressed store, hash-verified

13# discoverability is a get endpoint, takes a /{app}
14@discoverability.route('/<app>', methods=['GET'])
15def get_discoverability(app):
16 """
17 Get discoverability information for the app
18 """
19
20 if not EVENTS_ENGINE:
21 return make_response(jsonify({
22 "success": False,
23 "error": "Events engine not configured"
24 }), 200)
25
26 feed_data = get_feed_data(app)
27 if feed_data:
28 return make_response(jsonify({
29 "success": True,
30 "examples": feed_data
31 }), 200)
32
33 return make_response(jsonify({
34 "success": False,
35 "error": "Not implemented"
36 }), 200)
37
38

Callers

nothing calls this directly

Calls 1

get_feed_dataFunction · 0.90

Tested by

no test coverage detected