Hello,

Thank you, this seems to work.

Is there a list of available endpoints?

When I look at the manual
https://openxpki.readthedocs.io/en/stable/subsystems/rpc.html it seems to
be querying the top level.

Cheers,
Gerard

On Thu, 15 Apr 2021 at 15:38, Oliver Welter <m...@oliwel.de> wrote:

> 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
>
> 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"}]}
>
> Are there additional steps needed to get the openapi spec?
>
> Cheers,
> Gerard
>
>
> _______________________________________________
> OpenXPKI-users mailing 
> listOpenXPKI-users@lists.sourceforge.nethttps://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
>
_______________________________________________
OpenXPKI-users mailing list
OpenXPKI-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openxpki-users

Reply via email to