You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In de documentation it says that I should use a particular json body (), but it fails with a 500 response code.
When I export manually via the Lemur GUI and check the network tab I get a different and much longer json.
I ultimately discovered that I need to send the following json body to get the right response:
{
"plugin": {
"slug": "java-keystore-jks",
"description": "Generates a JKS keystore",
"title": "Java Keystore (JKS)",
"pluginOptions": [{
"name": "passphrase",
"type": "str",
"required": false,
"helpMessage": "If no passphrase is given one will be generated for you, we highly recommend this.",
"validation": "",
"value": "sdfgsdgf"
}, {
"name": "alias",
"type": "str",
"required": false,
"helpMessage": "Enter the alias you wish to use for the keystore.",
"value": "sdfgsdfgsdfg"
}],
"route": "plugins",
"reqParams": null,
"restangularized": true,
"fromServer": true,
"parentResource": null,
"restangularCollection": false
}
}
I kindly request you to have a look at this and perhaps update the documenation.
The text was updated successfully, but these errors were encountered:
Hello,
I've been trying to export a certificate follwing the documentation of https://lemur.readthedocs.io/en/latest/developer/index.html#rest-api (see section class certificates.views.CertificateExport)
In de documentation it says that I should use a particular json body (), but it fails with a 500 response code.
When I export manually via the Lemur GUI and check the network tab I get a different and much longer json.
I ultimately discovered that I need to send the following json body to get the right response:
{
"plugin": {
"slug": "java-keystore-jks",
"description": "Generates a JKS keystore",
"title": "Java Keystore (JKS)",
"pluginOptions": [{
"name": "passphrase",
"type": "str",
"required": false,
"helpMessage": "If no passphrase is given one will be generated for you, we highly recommend this.",
"validation": "",
"value": "sdfgsdgf"
}, {
"name": "alias",
"type": "str",
"required": false,
"helpMessage": "Enter the alias you wish to use for the keystore.",
"value": "sdfgsdfgsdfg"
}],
"route": "plugins",
"reqParams": null,
"restangularized": true,
"fromServer": true,
"parentResource": null,
"restangularCollection": false
}
}
I kindly request you to have a look at this and perhaps update the documenation.
The text was updated successfully, but these errors were encountered: