Hi,
i have a running node in a docker container (synology nas).
Here is the link to the dockerfile https://github.com/EmurgoVN/cardano_docker
I can now communicate with the node over the rest api. For example a call over my browser
https://192.168.2.200:33403/api/info
=> {“Right”: “cabalVersion”:“1.0.3”,“apiVersion”:“v0”,“gitRevision”:“0ceca33c290f07ecdbb6ee8789dcdeef8e2d8d93”,“softwareVersion”:“cardano-sl:0”}}
Under cardanodocs.com is the swagger ui available to describe the api of the wallet.
https://cardanodocs.com/technical/wallet/api/#
Is the swagger UI also available on every running node? Is yes, what is the url to open the ui?
I tryed some variation but has no success
Regards
p-alik
15 February 2018 20:32
2
You have to install swagger by yourself.
https://editor.swagger.io/
https://cardanodocs.com/technical/wallet/api/
Or you can generate a new version of the docs for whichever branch you are working on by running
cardano-node-swagger (I think that’s the name) which is an executable which lives in the wallet project. That will dump a swagger.json file you can open with https://editor.swagger.io and play around
1 Like
@p-alik thank you for the hint
but i want to use the swagger UI on the running node. The advantage of swagger is, that it can be a living documentation/spec. You can interact over the ui with the api. Is is a replacment of the browser/postman or other tools to consume a REST API.
Regards
p-alik
16 February 2018 09:48
4
I guess there is no way around it to setup it manually.
Here a good post regarding postman setup with cardano api:
originally posted here
Cardano API
The api is described in detail here via the swagger generated HTML
Postman
What is postman?
https://www.getpostman.com/ Postman is a user friendly GUI to manage API calls. It can be used to run rest api calls and inspect results.
Setup postman
Download the postman app from here
https://app.getpostman.com/app/download/linux64
Untar it
tar -xzf Postman-linux-x64-5.5.0.tar.gz
and run it
cd Postman/
./Postman
Now first you want to turn off your ss…
1 Like
@p-alik Thank you. That helps me!
1 Like