Hi Gerard,

there is no Spec on the top level, you must add the name of the
"Endpoint" to use, e.g. /rpc/public or /rpc/enroll.

Oliver

Am 14.04.21 um 09:05 schrieb Gerard van den Bosch:
> Hello,
>
> I have followed the quick setup guide.
>
> After that I have allowed RPC on port 80.
>
> I am trying to retrieve the openapi spec by executing:
>
>  curl -F "method=openapi-spec" http://localhost:80/rpc
> <http://localhost:80/rpc>
>
> I would expect specifications of the API calls but it seems I am
> receiving an error.
>
> {"components":{"schemas":{"Error":{"properties":{"error":{"description":"Only
> set if an error occured while executing the
> command","properties":{"code":{"type":"integer"},"data":{"properties":{"pid":{"type":"integer"}},"type":"object"},"message":{"type":"string"}},"required":["code","message","data"],"type":"object"}},"type":"object"}}},"info":{"description":"Request,
> Renew and Revoke your Certificates her","title":"Public Certificate
> Reqest
> API","version":"42.1"},"openapi":"3.0.0","paths":null,"result":{},"servers":[{"description":"OpenXPKI
> server","url":"http://localhost:80/rpc <http://localhost:80/rpc>"}]}
>
> Are there additional steps needed to get the openapi spec?
>
> Cheers,
> Gerard
>
>
> _______________________________________________
> OpenXPKI-users mailing list
> OpenXPKI-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openxpki-users


-- 
Protect your environment -  close windows and adopt a penguin! 

_______________________________________________
OpenXPKI-users mailing list
OpenXPKI-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openxpki-users

Reply via email to