Hello Gerard, the endpoint names are the names of the files in the rpc/ directory and you need to define what methods to expose in each of them. There are two endpoints "public" and "enroll" in the default repository but you can just add new files to add new endpoint.s
Oliver Am 16.04.21 um 05:14 schrieb Gerard van den Bosch: > 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 > <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 > <mailto: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 >> <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 >> <mailto:OpenXPKI-users@lists.sourceforge.net> >> https://lists.sourceforge.net/lists/listinfo/openxpki-users >> <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 > <mailto:OpenXPKI-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/openxpki-users > <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 -- 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