Skip to content

Commit

Permalink
Expose certificate dateCreated via API
Browse files Browse the repository at this point in the history
  • Loading branch information
intgr committed Jul 2, 2018
1 parent 5c0cc69 commit 50846eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions lemur/certificates/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ class CertificateOutputSchema(LemurOutputSchema):
issuer = fields.String()
name = fields.String()
dns_provider_id = fields.Integer(required=False, allow_none=True)
date_created = ArrowDateTime()

rotation = fields.Boolean()

Expand Down
7 changes: 7 additions & 0 deletions lemur/certificates/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def get(self):
"serial": "82311058732025924142789179368889309156",
"id": 2288,
"issuer": "SymantecCorporation",
"dateCreated": "2016-06-03T06:09:42.133769+00:00",
"notBefore": "2016-06-03T00:00:00+00:00",
"notAfter": "2018-01-12T23:59:59+00:00",
"destinations": [],
Expand Down Expand Up @@ -214,6 +215,7 @@ def post(self, data=None):
"serial": "82311058732025924142789179368889309156",
"id": 2288,
"issuer": "SymantecCorporation",
"dateCreated": "2016-06-03T06:09:42.133769+00:00",
"notBefore": "2016-06-03T00:00:00+00:00",
"notAfter": "2018-01-12T23:59:59+00:00",
"destinations": [],
Expand Down Expand Up @@ -334,6 +336,7 @@ def post(self, data=None):
"serial": "82311058732025924142789179368889309156",
"id": 2288,
"issuer": "SymantecCorporation",
"dateCreated": "2016-06-03T06:09:42.133769+00:00",
"notBefore": "2016-06-03T00:00:00+00:00",
"notAfter": "2018-01-12T23:59:59+00:00",
"destinations": [],
Expand Down Expand Up @@ -498,6 +501,7 @@ def get(self, certificate_id):
"serial": "82311058732025924142789179368889309156",
"id": 2288,
"issuer": "SymantecCorporation",
"dateCreated": "2016-06-03T06:09:42.133769+00:00",
"notBefore": "2016-06-03T00:00:00+00:00",
"notAfter": "2018-01-12T23:59:59+00:00",
"destinations": [],
Expand Down Expand Up @@ -587,6 +591,7 @@ def put(self, certificate_id, data=None):
"serial": "82311058732025924142789179368889309156",
"id": 2288,
"issuer": "SymantecCorporation",
"dateCreated": "2016-06-03T06:09:42.133769+00:00",
"notBefore": "2016-06-03T00:00:00+00:00",
"notAfter": "2018-01-12T23:59:59+00:00",
"destinations": [],
Expand Down Expand Up @@ -700,6 +705,7 @@ def get(self, notification_id):
"serial": "82311058732025924142789179368889309156",
"id": 2288,
"issuer": "SymantecCorporation",
"dateCreated": "2016-06-03T06:09:42.133769+00:00",
"notBefore": "2016-06-03T00:00:00+00:00",
"notAfter": "2018-01-12T23:59:59+00:00",
"destinations": [],
Expand Down Expand Up @@ -807,6 +813,7 @@ def get(self, certificate_id):
"serial": "82311058732025924142789179368889309156",
"id": 2288,
"issuer": "SymantecCorporation",
"dateCreated": "2016-06-03T06:09:42.133769+00:00",
"notBefore": "2016-06-03T00:00:00+00:00",
"notAfter": "2018-01-12T23:59:59+00:00",
"destinations": [],
Expand Down

0 comments on commit 50846eb

Please sign in to comment.