Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 4
0
 def get(self, session=None):
     return secrets_from_db()
Exemplo n.º 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
Exemplo n.º 6
0
 def get(self, session=None):
     return secrets_from_db()
Exemplo n.º 7
0
 def get(self, session=None):
     """ Get secrets data from DB """
     return jsonify(secrets_from_db())
Exemplo n.º 8
0
 def get(self, session=None):
     """ Get secrets data from DB """
     return jsonify(secrets_from_db())