Interact with STRATO using API through Swagger UI

After running the docker machine, the Swagger UI can be found at:

http://localhost/docs/?url=/strato-api/eth/v1.2/swagger.json

or if you are using Docker Toolbox:

http://192.168.99.100/docs/?url=/strato-api/eth/v1.2/swagger.json

Create users

  • Navigate to "Post /users/{user}"

    User1

  • Fill out the required fields with faucet as true

    User2

  • After execution, the response is the user address

    User3

List users

  • Navigate to "Get /users/{user}" and search for any user

    User4

  • After execution, the response is the list of all current users with that username

    User5

Create contract

  • Navigate to "Post /users/{user}/{address}/contract"

    Contract 1

  • Build Sample Contract with previous user account and address

    Contract 2

  • After execution, the response is the contract address

    Contract 3

Call a method on a contract

  • Navigate "Post /users/{user}/{userAddress}/contract/{contractName}/{contractAddress}/call"

    Call 1

  • Fill in method call and contract address

    Call 2

  • After execution, the response is the contract response

    Call 3

Send ether (make transaction)

  • Navigate to "Post /users/{user}/{address}/send"

    Send 1

  • Fill in your user address and in the body, fill out target address

    Send 2

  • After execution, the response is the transaction receipt

    Send 3