From cdcae4efb03c7760a340b1757a028aadac500664 Mon Sep 17 00:00:00 2001 From: kevgliss Date: Tue, 20 Dec 2016 14:26:39 -0800 Subject: [PATCH] Closes #594 (#621) --- lemur/certificates/schemas.py | 1 + lemur/certificates/views.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lemur/certificates/schemas.py b/lemur/certificates/schemas.py index ea9616bc..ccc8fd2e 100644 --- a/lemur/certificates/schemas.py +++ b/lemur/certificates/schemas.py @@ -175,6 +175,7 @@ class CertificateOutputSchema(LemurOutputSchema): authority = fields.Nested(AuthorityNestedOutputSchema) roles = fields.Nested(RoleNestedOutputSchema, many=True) endpoints = fields.Nested(EndpointNestedOutputSchema, many=True, missing=[]) + replaced = fields.Nested(CertificateNestedOutputSchema, many=True) class CertificateUploadInputSchema(CertificateCreationSchema): diff --git a/lemur/certificates/views.py b/lemur/certificates/views.py index 68db492d..901f9949 100644 --- a/lemur/certificates/views.py +++ b/lemur/certificates/views.py @@ -99,6 +99,7 @@ class CertificatesList(AuthenticatedResource): "name": "*.test.example.net" }], "replaces": [], + "replaced": [], "name": "WILDCARD.test.example.net-SymantecCorporation-20160603-20180112", "roles": [{ "id": 464, @@ -520,6 +521,7 @@ class Certificates(AuthenticatedResource): "name": "*.test.example.net" }], "replaces": [], + "replaced": [], "name": "WILDCARD.test.example.net-SymantecCorporation-20160603-20180112", "roles": [{ "id": 464, @@ -720,6 +722,7 @@ class NotificationCertificatesList(AuthenticatedResource): "name": "*.test.example.net" }], "replaces": [], + "replaced": [], "name": "WILDCARD.test.example.net-SymantecCorporation-20160603-20180112", "roles": [{ "id": 464, @@ -824,6 +827,7 @@ class CertificatesReplacementsList(AuthenticatedResource): "name": "*.test.example.net" }], "replaces": [], + "replaced": [], "name": "WILDCARD.test.example.net-SymantecCorporation-20160603-20180112", "roles": [{ "id": 464,