How to use cert-issuer web api


#1

I recently found out cert-issuer has web api. Does anybody know how to use it

@app.route(’/cert_issuer/api/v1.0/issue’, methods=[‘POST’])
def issue():
config = get_config()
print(config)
certificate_batch_handler, transaction_handler, connector =
bitcoin.instantiate_blockchain_handlers(config, False)
certificate_batch_handler.set_certificates_in_batch(request.json)
cert_issuer.issue_certificates.issue(config, certificate_batch_handler, transaction_handler)
return json.dumps(certificate_batch_handler.proof)