Removing revocation comments for now. (#947)

This commit is contained in:
kevgliss 2017-09-29 10:53:15 -07:00 committed by GitHub
parent bb08b1e637
commit f5213deb67
2 changed files with 3 additions and 8 deletions

View File

@ -25,8 +25,7 @@ from lemur.certificates.schemas import (
certificate_upload_input_schema, certificate_upload_input_schema,
certificates_output_schema, certificates_output_schema,
certificate_export_input_schema, certificate_export_input_schema,
certificate_edit_input_schema, certificate_edit_input_schema
certificate_revoke_schema
) )
from lemur.roles import service as role_service from lemur.roles import service as role_service
@ -957,7 +956,7 @@ class CertificateRevoke(AuthenticatedResource):
self.reqparse = reqparse.RequestParser() self.reqparse = reqparse.RequestParser()
super(CertificateRevoke, self).__init__() super(CertificateRevoke, self).__init__()
@validate_schema(certificate_revoke_schema, None) @validate_schema(None, None)
def put(self, certificate_id, data=None): def put(self, certificate_id, data=None):
""" """
.. http:put:: /certificates/1/revoke .. http:put:: /certificates/1/revoke
@ -972,10 +971,6 @@ class CertificateRevoke(AuthenticatedResource):
Host: example.com Host: example.com
Accept: application/json, text/javascript Accept: application/json, text/javascript
{
"comments": "Certificate no longer needed"
}
**Example response**: **Example response**:
.. sourcecode:: http .. sourcecode:: http

View File

@ -259,7 +259,7 @@ angular.module('lemur')
}; };
CertificateService.revoke = function (certificate) { CertificateService.revoke = function (certificate) {
return certificate.customPUT(certificate.externalId, 'revoke'); return certificate.customPUT('revoke');
}; };
return CertificateService; return CertificateService;