Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to update documentation #4110

Open
Francescovs opened this issue Jun 24, 2022 · 0 comments
Open

Request to update documentation #4110

Francescovs opened this issue Jun 24, 2022 · 0 comments

Comments

@Francescovs
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants