Пример #1
0
 def put(self, session=None):
     """ Store secrets data to DB """
     data = request.json
     secrets_to_db(data)
     # This will trigger reloading the secrets file
     self.manager.validate_config()
     rsp = jsonify(secrets_from_db())
     rsp.status_code = 201
     return rsp
Пример #2
0
 def put(self, session=None):
     """ Store secrets data to DB """
     data = request.json
     secrets_to_db(data)
     # This will trigger reloading the secrets file
     self.manager.validate_config()
     rsp = jsonify(secrets_from_db())
     rsp.status_code = 201
     return rsp
Пример #3
0
 def put(self, session=None):
     data = request.json
     secrets_to_db(data)
     # This will trigger reloading the secrets file
     self.manager.validate_config()
     return secrets_from_db(), 201
Пример #4
0
 def get(self, session=None):
     return secrets_from_db()
Пример #5
0
 def put(self, session=None):
     data = request.json
     secrets_to_db(data)
     # This will trigger reloading the secrets file
     self.manager.validate_config()
     return secrets_from_db(), 201
Пример #6
0
 def get(self, session=None):
     return secrets_from_db()
Пример #7
0
 def get(self, session=None):
     """ Get secrets data from DB """
     return jsonify(secrets_from_db())
Пример #8
0
 def get(self, session=None):
     """ Get secrets data from DB """
     return jsonify(secrets_from_db())