1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Reworked secrets API to allow optional decryption by POSTing a private key

This commit is contained in:
Jeremy Stretch
2016-03-22 12:17:49 -04:00
parent b78caba1ca
commit 6ce2cf9db0
4 changed files with 86 additions and 43 deletions

View File

@ -31,7 +31,7 @@ class SecretSerializer(serializers.ModelSerializer):
class Meta:
model = Secret
fields = ['id', 'device', 'role', 'name', 'hash', 'created', 'last_modified']
fields = ['id', 'device', 'role', 'name', 'plaintext', 'hash', 'created', 'last_modified']
class SecretNestedSerializer(SecretSerializer):