Get discoverability information for the app
(app)
| 13 | # discoverability is a get endpoint, takes a /{app} |
| 14 | @discoverability.route('/<app>', methods=['GET']) |
| 15 | def 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 |
nothing calls this directly
no test coverage detected