Closed phlegx closed 6 months ago
I finally read the documentation and found out that this is the endpoint where you can get the version back:
GET /api/v1/version
This endpoint can also serve fore liveness and readiness checks in the deployment.
Exactly. But maybe it is not the worst idea to add dedicated endpoints for readiness, etc.. I will have a look at this after I get back from my vacation.
Hi @benzino77 yes for sure that would be nice to have! Let me know when it is implemented!
HI there, When calling the service with curl like:
curl -s clamav-api-service.clamav.svc.cluster.local:3000
I get back:
{"success":false,"data":{"error":"Not allowed."}}
Should't that give me the version? I mean the API is up and running.
https://github.com/benzino77/clamav-rest-api/blob/e10759250b3c9f2ab806d2760287da1df1702c22/src/routes/version.js#L28
Thanks Martin