Commit 35b01ce1 authored by Guillermo Sanz López's avatar Guillermo Sanz López
Browse files

delete mock

parent cec60a9d
Loading
Loading
Loading
Loading
+2 −41
Original line number Diff line number Diff line
@@ -75,33 +75,6 @@ class Operations:
            for security_context in security_contexts:
               json_security_contexts.append(security_context)

            # json_data1 = [
            #     {
            #         "api_invoker_id": "INVdae63404f66b428f123c6f0a81fe7b",
            #         "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_data1), 200
            return jsonify(message="Security context retrieved succesfully",
                           object=json_security_contexts), 200

@@ -212,20 +185,8 @@ class Operations:
                ]}, 
                {"_id": 0})

            json_user = [
                {
                    "fullName": "Fogus",
                    "info": "http://www.fogus.gr"
                },
                {
                    "fullName": "OWO",
                    "info": "https://owogame.com"
                }
            ]

            return jsonify(json_user), 200
            #return jsonify(message="Events retrieved succesfully",
            #               object=user), 200
            return jsonify(message="Events retrieved succesfully",
                           object=user), 200

        except Exception as e:
            return "Error when retreiving event: ", e