Crates.io | marlowe_client |
lib.rs | marlowe_client |
version | 0.0.5 |
source | src |
created_at | 2024-02-26 17:34:13.598542 |
updated_at | 2024-02-26 17:34:13.598542 |
description | HTTP client for the Marlowe Runtime REST API |
homepage | https://github.com/marlowe-contrib/marlowe-rust-sdk/tree/main/marlowe_client |
repository | https://github.com/marlowe-contrib/marlowe-rust-sdk |
max_upload_size | |
id | 1153990 |
size | 238,936 |
REST API for Marlowe Runtime
This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.
org.openapitools.codegen.languages.RustClientCodegen
Put the package under your project folder in a directory named marlowe_client
and add the following to Cargo.toml
under [dependencies]
:
marlowe_client = { path = "./marlowe_client" }
All URIs are relative to https://marlowe-runtime-preprod-web.scdev.aws.iohkdev.io
Class | Method | HTTP request | Description |
---|
DefaultApi | apply_inputs_to_contract | POST /contracts/{contractId}/transactions | Apply inputs to contract DefaultApi | create_contract | POST /contracts | Create a new contract DefaultApi | create_contract_sources | POST /contracts/sources | Upload contract sources DefaultApi | get_contract_by_id | GET /contracts/{contractId} | Get contract by ID DefaultApi | get_contract_source_adjacency | GET /contracts/sources/{contractSourceId}/adjacency | Get adjacent contract source IDs by ID DefaultApi | get_contract_source_by_id | GET /contracts/sources/{contractSourceId} | Get contract source by ID DefaultApi | get_contract_source_closure | GET /contracts/sources/{contractSourceId}/closure | Get contract source closure by ID DefaultApi | get_contract_transaction_by_id | GET /contracts/{contractId}/transactions/{transactionId} | Get contract transaction by ID DefaultApi | get_contracts | GET /contracts | Get contracts DefaultApi | get_next_steps_for_contract | GET /contracts/{contractId}/next | Get next contract steps DefaultApi | get_payout_by_id | GET /payouts/{payoutId} | Get payout by ID DefaultApi | get_payouts | GET /payouts | Get role payouts DefaultApi | get_transactions_for_contract | GET /contracts/{contractId}/transactions | Get transactions for contract DefaultApi | get_withdrawal_by_id | GET /withdrawals/{withdrawalId} | Get withdrawal by ID DefaultApi | get_withdrawals | GET /withdrawals | Get withdrawals DefaultApi | healthcheck | GET /healthcheck | Test server status DefaultApi | submit_contract | PUT /contracts/{contractId} | Submit contract to chain DefaultApi | submit_contract_transaction | PUT /contracts/{contractId}/transactions/{transactionId} | Submit contract input application DefaultApi | submit_withdrawal | PUT /withdrawals/{withdrawalId} | Submit payout withdrawal DefaultApi | withdraw_payouts | POST /withdrawals | Withdraw payouts
To get access to the crate's generated documentation, use:
cargo doc --open