Removing revocation comments for now. (#947)
This commit is contained in:
parent
bb08b1e637
commit
f5213deb67
|
@ -25,8 +25,7 @@ from lemur.certificates.schemas import (
|
|||
certificate_upload_input_schema,
|
||||
certificates_output_schema,
|
||||
certificate_export_input_schema,
|
||||
certificate_edit_input_schema,
|
||||
certificate_revoke_schema
|
||||
certificate_edit_input_schema
|
||||
)
|
||||
|
||||
from lemur.roles import service as role_service
|
||||
|
@ -957,7 +956,7 @@ class CertificateRevoke(AuthenticatedResource):
|
|||
self.reqparse = reqparse.RequestParser()
|
||||
super(CertificateRevoke, self).__init__()
|
||||
|
||||
@validate_schema(certificate_revoke_schema, None)
|
||||
@validate_schema(None, None)
|
||||
def put(self, certificate_id, data=None):
|
||||
"""
|
||||
.. http:put:: /certificates/1/revoke
|
||||
|
@ -972,10 +971,6 @@ class CertificateRevoke(AuthenticatedResource):
|
|||
Host: example.com
|
||||
Accept: application/json, text/javascript
|
||||
|
||||
{
|
||||
"comments": "Certificate no longer needed"
|
||||
}
|
||||
|
||||
**Example response**:
|
||||
|
||||
.. sourcecode:: http
|
||||
|
|
|
@ -259,7 +259,7 @@ angular.module('lemur')
|
|||
};
|
||||
|
||||
CertificateService.revoke = function (certificate) {
|
||||
return certificate.customPUT(certificate.externalId, 'revoke');
|
||||
return certificate.customPUT('revoke');
|
||||
};
|
||||
|
||||
return CertificateService;
|
||||
|
|
Loading…
Reference in New Issue