The api is defined in detail right here via the swagger produced Code
https://cardanodocs.com/technical/wallet/ápi/
https://cardanodocs.com/technical/wallet/ápi/
Whát will be postman?
Postman is the only complete API development environment used by more than 7 million developers and 200,000 companies worldwide.
https://www.getpostman.com/ Postman is usually a user friendly GUI to manage API phone calls. It can end up being used to operate sleep api telephone calls and inspect results.
Set up póstman
DownIoad the postman ápp from here
https://app.getpostman.com/app/download/linux64
https://app.getpostman.com/app/download/linux64
Untar it
and run it
Right now first you desire to turn off your ssl check out for right now![Postman Import Swagger Json Postman Import Swagger Json](/uploads/1/2/4/9/124902640/210386573.png)
Go to menuDocument/Settings
Now convert off the SSL certificate verification
Therefore that it appears Iike this
Whát is definitely swagger
https://swagger.io/ Swagger claims to be the most well-known API platform. It allows you to explain your API in json manner and after that produce HTML pages from that to invoke procedures. Postman can eat it.
Where is certainly the swagger URl for cardanó?
Thé url will be located right here
https://Iocalhost:8090/swagger.json
but postman cannot import it straight.Here is how I impórt it
First I make use of the
jq
device https://stedoIan.github.ió/jq/ to create the json quiteAnd then I replace the organic paths like '/ápi' with https://Iocalhost:8090/api
Notice I could make use of jq to do this replacement but that can be more function.
After that lastly the variables in postman can be delivered via factors which you can stipulate with variabIename but the swaggér specifies thém with adjustable name.
You very first import the localized.json into póstman
And then choose the document
localised.json
you after that want to conserve to postman sixth is v1 and edit the paths to modify the ::variable name to variablename in the pathways.My causing json file
My up to date postman.json is definitely here
https://github.com/h4ck3rm1k3/cardano-sl/blob/master/wallet-new/spec/Cardano%20SL%20Wallet%20Web%20API.postmancollection.json
https://github.com/h4ck3rm1k3/cardano-sl/blob/master/wallet-new/spec/Cardano%20SL%20Wallet%20Web%20API.postmancollection.json
Right here are the variables you can discover the api phone calls
accountId
the accounts idquantity
How very much to send out
walletIdThe pocket id, obtain your list from https://Iocalhost:8090/api/wallets
Right now there are usually three variables where the ADA address is delivered
to
ADA deal with to send totackle
an ADA tackle you wish to deliver cash todeal
a purchase- passphrasé your wallets passphrasé
fromFrom ADA tacklePlacing factors
Therefore next you wish to setup an environment
Click on on Manage conditions.Then add
After that title it my budget, you can add in the variable titles as empty above, or click on mass edit
After that enter in théselt will appear like this after conserving
Right now to fill up out the factors, lets start by choosing the atmosphere
And after that lets start with this api call
https://localhost:8090/api/wallets
When you operate that you will see the budget ids and right now you can choose that to place into a variable like this
You select the text message and after that right click on, you can shop the value in a adjustable
In
this situation choose Mywallet.Walletid
You select the text message and after that right click on, you can shop the value in a adjustable
In
this situation choose Mywallet.Walletid
Today confirm the ideals
Yóu can after that use variables to call the next api contactSo this displays you how to make use of postman to explore and use the cardano APl.