Commit 506ed316 authored by Guillermo Sanz López's avatar Guillermo Sanz López
Browse files

mock invoker id

parent 80c863af
Loading
Loading
Loading
Loading
+29 −2
Original line number Diff line number Diff line
@@ -77,8 +77,35 @@ class Operations:
            for security_context in security_contexts:
                json_security_contexts.append(security_context)

            return jsonify(message="Security context retrieved succesfully",
                           object=json_security_contexts), 200
            json_data = [
                {
                    "api_invoker_id": "266b04e111b61c281a1e6619d7dc6b",
                    "notification_destination": "https://mynotificationdest.com",
                    "request_test_notification": true,
                    "security_info": [
                        {
                            "aef_id": "85334d91abed18a2c9ee5dd93823ee",
                            "api_id": "d1ef8e8cd65d53c926664a45c27256",
                            "authentication_info": "string",
                            "authorization_info": "string",
                            "interface_details": null,
                            "pref_security_methods": [
                                "OAUTH"
                            ],
                            "sel_security_method": "OAUTH"
                        }
                    ],
                    "supported_features": "fff",
                    "websock_notif_config": {
                        "request_websocket_uri": true,
                        "websocket_uri": "string"
                    }
                }
            ]

            return jsonify(json_data), 200
            #return jsonify(message="Security context retrieved succesfully",
            #               object=json_security_contexts), 200

        except Exception as e:
            return "Error when retreiving invoker list: ", e