REST API Reference on Docker Container #661
-
Hi there, I setup a EJBCA Instance using the docker container. Now I want to use the rest api the issue some certs. I found an old post with the same issue but no answer: Is there any way to get the api reference without the need to setup a instance without docker or to do a build without the prod flag? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You mean this URL right? https://localhost:8442/ejbca/doc/rest |
Beta Was this translation helpful? Give feedback.
-
You can download swagger.json from GitHub: https://github.com/Keyfactor/ejbca-ce/blob/main/modules/ejbca-rest-api/resources/swagger.json Then you can run swagger locally by for exampel: That gives you Swagger API. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your help... I didn't thinkt about the swagger.json. That helps... you can even open it on https://editor.swagger.io/ to keep it simple without the container. |
Beta Was this translation helpful? Give feedback.
You can download swagger.json from GitHub: https://github.com/Keyfactor/ejbca-ce/blob/main/modules/ejbca-rest-api/resources/swagger.json
Then you can run swagger locally by for exampel:
docker run -p 80:8080 -e SWAGGER_JSON=/foo/swagger.json -v /tmp:/foo swaggerapi/swagger-ui
That gives you Swagger API.