Skip to content

Commit

Permalink
Different Endpoint Permissions Emily (#1081)
Browse files Browse the repository at this point in the history
* feat: CORS wip

* feat: openapi-spec update

* fix: comment

* feat: Guess what the error was

* chore: lints

* feat: Add path parameters to CORS operations.

* chore: Include generated code

* chore: cargo fmt

* feat: Different Permissions on Different Emily Endpoints

* chore: cargo fmt

* fix: Bad typescript type

* fix test issues

* change order of prefixes

* fix: domain name capitalization

* fix: Minor issues
  • Loading branch information
AshtonStephens authored Dec 10, 2024
1 parent 9864056 commit 9e32195
Show file tree
Hide file tree
Showing 246 changed files with 13,881 additions and 274 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
.gitignore
.travis.yml
Cargo.toml
README.md
docs/AccountLimits.md
docs/Chainstate.md
docs/ChainstateApi.md
docs/CorsApi.md
docs/CreateDepositRequestBody.md
docs/CreateWithdrawalRequestBody.md
docs/Deposit.md
docs/DepositApi.md
docs/DepositInfo.md
docs/DepositParameters.md
docs/DepositUpdate.md
docs/ErrorResponse.md
docs/Fulfillment.md
docs/GetDepositsForTransactionResponse.md
docs/GetDepositsResponse.md
docs/GetWithdrawalsResponse.md
docs/HealthApi.md
docs/HealthData.md
docs/Limits.md
docs/LimitsApi.md
docs/Status.md
docs/UpdateDepositsRequestBody.md
docs/UpdateDepositsResponse.md
docs/UpdateWithdrawalsRequestBody.md
docs/UpdateWithdrawalsResponse.md
docs/Withdrawal.md
docs/WithdrawalApi.md
docs/WithdrawalInfo.md
docs/WithdrawalParameters.md
docs/WithdrawalUpdate.md
git_push.sh
src/apis/chainstate_api.rs
src/apis/configuration.rs
src/apis/cors_api.rs
src/apis/deposit_api.rs
src/apis/health_api.rs
src/apis/limits_api.rs
src/apis/mod.rs
src/apis/withdrawal_api.rs
src/lib.rs
src/models/account_limits.rs
src/models/chainstate.rs
src/models/create_deposit_request_body.rs
src/models/create_withdrawal_request_body.rs
src/models/deposit.rs
src/models/deposit_info.rs
src/models/deposit_parameters.rs
src/models/deposit_update.rs
src/models/error_response.rs
src/models/fulfillment.rs
src/models/get_deposits_for_transaction_response.rs
src/models/get_deposits_response.rs
src/models/get_withdrawals_response.rs
src/models/health_data.rs
src/models/limits.rs
src/models/mod.rs
src/models/status.rs
src/models/update_deposits_request_body.rs
src/models/update_deposits_response.rs
src/models/update_withdrawals_request_body.rs
src/models/update_withdrawals_response.rs
src/models/withdrawal.rs
src/models/withdrawal_info.rs
src/models/withdrawal_parameters.rs
src/models/withdrawal_update.rs
16 changes: 16 additions & 0 deletions .generated-sources/emily/client/rust/private/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "private-emily-client"
version = "0.1.0"
authors = ["OpenAPI Generator team and contributors"]
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
license = ""
edition = "2021"

[dependencies]
serde = { version = "^1.0", features = ["derive"] }
serde_with = { version = "^3.8", default-features = false, features = ["base64", "std", "macros"] }
serde_json = "^1.0"
serde_repr = "^0.1"
url = "^2.5"
uuid = { version = "^1.8", features = ["serde", "v4"] }
reqwest = { version = "^0.12", features = ["json", "multipart"] }
96 changes: 96 additions & 0 deletions .generated-sources/emily/client/rust/private/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Rust API client for private-emily-client

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)


## Overview

This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client.

- API version: 0.1.0
- Package version: 0.1.0
- Generator version: 7.8.0
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`

## Installation

Put the package under your project folder in a directory named `private-emily-client` and add the following to `Cargo.toml` under `[dependencies]`:

```
private-emily-client = { path = "./private-emily-client" }
```

## Documentation for API Endpoints

All URIs are relative to *http://localhost*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*CorsApi* | [**chainstate_height_options**](docs/CorsApi.md#chainstate_height_options) | **OPTIONS** /chainstate/{height} | CORS support
*CorsApi* | [**chainstate_options**](docs/CorsApi.md#chainstate_options) | **OPTIONS** /chainstate | CORS support
*CorsApi* | [**deposit_options**](docs/CorsApi.md#deposit_options) | **OPTIONS** /deposit | CORS support
*CorsApi* | [**deposit_txid_index_options**](docs/CorsApi.md#deposit_txid_index_options) | **OPTIONS** /deposit/{txid}/{index} | CORS support
*CorsApi* | [**deposit_txid_options**](docs/CorsApi.md#deposit_txid_options) | **OPTIONS** /deposit/{txid} | CORS support
*CorsApi* | [**health_options**](docs/CorsApi.md#health_options) | **OPTIONS** /health | CORS support
*CorsApi* | [**limits_account_options**](docs/CorsApi.md#limits_account_options) | **OPTIONS** /limits/{account} | CORS support
*CorsApi* | [**limits_options**](docs/CorsApi.md#limits_options) | **OPTIONS** /limits | CORS support
*CorsApi* | [**withdrawal_id_options**](docs/CorsApi.md#withdrawal_id_options) | **OPTIONS** /withdrawal/{id} | CORS support
*CorsApi* | [**withdrawal_options**](docs/CorsApi.md#withdrawal_options) | **OPTIONS** /withdrawal | CORS support
*ChainstateApi* | [**get_chain_tip**](docs/ChainstateApi.md#get_chain_tip) | **GET** /chainstate | Get chain tip handler.
*ChainstateApi* | [**get_chainstate_at_height**](docs/ChainstateApi.md#get_chainstate_at_height) | **GET** /chainstate/{height} | Get chainstate handler.
*ChainstateApi* | [**set_chainstate**](docs/ChainstateApi.md#set_chainstate) | **POST** /chainstate | Set chainstate handler.
*ChainstateApi* | [**update_chainstate**](docs/ChainstateApi.md#update_chainstate) | **PUT** /chainstate | Update chainstate handler.
*DepositApi* | [**create_deposit**](docs/DepositApi.md#create_deposit) | **POST** /deposit | Create deposit handler.
*DepositApi* | [**get_deposit**](docs/DepositApi.md#get_deposit) | **GET** /deposit/{txid}/{index} | Get deposit handler.
*DepositApi* | [**get_deposits**](docs/DepositApi.md#get_deposits) | **GET** /deposit | Get deposits handler.
*DepositApi* | [**get_deposits_for_transaction**](docs/DepositApi.md#get_deposits_for_transaction) | **GET** /deposit/{txid} | Get deposits for transaction handler.
*DepositApi* | [**update_deposits**](docs/DepositApi.md#update_deposits) | **PUT** /deposit | Update deposits handler.
*HealthApi* | [**check_health**](docs/HealthApi.md#check_health) | **GET** /health | Get health handler.
*LimitsApi* | [**get_limits**](docs/LimitsApi.md#get_limits) | **GET** /limits | Get the global limits.
*LimitsApi* | [**get_limits_for_account**](docs/LimitsApi.md#get_limits_for_account) | **GET** /limits/{account} | Get limits for account handler.
*LimitsApi* | [**set_limits**](docs/LimitsApi.md#set_limits) | **POST** /limits | Get limits handler.
*LimitsApi* | [**set_limits_for_account**](docs/LimitsApi.md#set_limits_for_account) | **POST** /limits/{account} | Set limits for account handler.
*WithdrawalApi* | [**create_withdrawal**](docs/WithdrawalApi.md#create_withdrawal) | **POST** /withdrawal | Create withdrawal handler.
*WithdrawalApi* | [**get_withdrawal**](docs/WithdrawalApi.md#get_withdrawal) | **GET** /withdrawal/{id} | Get withdrawal handler.
*WithdrawalApi* | [**get_withdrawals**](docs/WithdrawalApi.md#get_withdrawals) | **GET** /withdrawal | Get withdrawals handler.
*WithdrawalApi* | [**update_withdrawals**](docs/WithdrawalApi.md#update_withdrawals) | **PUT** /withdrawal | Update withdrawals handler.


## Documentation For Models

- [AccountLimits](docs/AccountLimits.md)
- [Chainstate](docs/Chainstate.md)
- [CreateDepositRequestBody](docs/CreateDepositRequestBody.md)
- [CreateWithdrawalRequestBody](docs/CreateWithdrawalRequestBody.md)
- [Deposit](docs/Deposit.md)
- [DepositInfo](docs/DepositInfo.md)
- [DepositParameters](docs/DepositParameters.md)
- [DepositUpdate](docs/DepositUpdate.md)
- [ErrorResponse](docs/ErrorResponse.md)
- [Fulfillment](docs/Fulfillment.md)
- [GetDepositsForTransactionResponse](docs/GetDepositsForTransactionResponse.md)
- [GetDepositsResponse](docs/GetDepositsResponse.md)
- [GetWithdrawalsResponse](docs/GetWithdrawalsResponse.md)
- [HealthData](docs/HealthData.md)
- [Limits](docs/Limits.md)
- [Status](docs/Status.md)
- [UpdateDepositsRequestBody](docs/UpdateDepositsRequestBody.md)
- [UpdateDepositsResponse](docs/UpdateDepositsResponse.md)
- [UpdateWithdrawalsRequestBody](docs/UpdateWithdrawalsRequestBody.md)
- [UpdateWithdrawalsResponse](docs/UpdateWithdrawalsResponse.md)
- [Withdrawal](docs/Withdrawal.md)
- [WithdrawalInfo](docs/WithdrawalInfo.md)
- [WithdrawalParameters](docs/WithdrawalParameters.md)
- [WithdrawalUpdate](docs/WithdrawalUpdate.md)


To get access to the crate's generated documentation, use:

```
cargo doc --open
```

## Author



Loading

0 comments on commit 9e32195

Please sign in to comment.