Get the list of modules --- responses: '200': description: Ok examples: application/json: [ "ftp/strong_password", "ftp/weak_password", "http/basic_auth_strong_password",
()
| 615 | |
| 616 | @app.route("/api/core/list/modules", methods=["GET"]) |
| 617 | def all_module_names(): |
| 618 | """ |
| 619 | Get the list of modules |
| 620 | --- |
| 621 | responses: |
| 622 | '200': |
| 623 | description: Ok |
| 624 | examples: |
| 625 | application/json: |
| 626 | [ |
| 627 | "ftp/strong_password", |
| 628 | "ftp/weak_password", |
| 629 | "http/basic_auth_strong_password", |
| 630 | "http/basic_auth_weak_password", |
| 631 | "ics/veeder_root_guardian_ast", |
| 632 | "smtp/strong_password", |
| 633 | "ssh/strong_password", |
| 634 | "ssh/weak_password" |
| 635 | ] |
| 636 | '500': |
| 637 | description: Internal Server Error |
| 638 | examples: |
| 639 | application/json: { "msg": "file/path not found!", "status": "error" } |
| 640 | """ |
| 641 | try: |
| 642 | return jsonify( |
| 643 | load_all_modules() |
| 644 | ), 200 |
| 645 | except Exception: |
| 646 | abort(500) |
| 647 | |
| 648 | |
| 649 | @app.route("/docs-configuration") |
nothing calls this directly
no test coverage detected