Skip to content

Commit

Permalink
Merge pull request #174 from flow-hydraulics/latenssi/prepare-0.6.0
Browse files Browse the repository at this point in the history
Make API doc more readable, fix docker build
  • Loading branch information
latenssi authored Sep 1, 2021
2 parents cde4bb5 + 20f7141 commit fa7d097
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 41 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

now=$(date +'%Y-%m-%d_%T')
go build -a -ldflags "-linkmode external -extldflags '-static' -s -w -X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=$now" -o main main.go
66 changes: 26 additions & 40 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ servers:
tags:
- name: Accounts
description: Create and lists accounts managed by this Wallet API.
- name: Account Transactions
description: Send, list and get transactions for an account.
- name: Account Fungible Tokens
description: Manage fungible tokens for an account.
- name: Account Non-Fungible Tokens
description: Manage fungible tokens for an account.
- name: Transactions
description: Send transactions from accounts managed by this Wallet API.
description: Manage transactions sent by the Wallet API.
- name: Scripts
description: Run zero-cost Cadence scripts to read on-chain data.
- name: Fungible Tokens
Expand Down Expand Up @@ -342,8 +348,7 @@ paths:
description: Get a list of all transactions sent by an account.
operationId: listAccountRawTransactions
tags:
- Accounts
- Transactions
- Account Transactions
parameters:
- $ref: "#/components/parameters/limit"
- $ref: "#/components/parameters/offset"
Expand All @@ -363,8 +368,7 @@ paths:
NOTE: The transaction code should require _exactly_ one AuthAccount and is assumed to be the account sending the transaction.
operationId: sendRawTransaction
tags:
- Accounts
- Transactions
- Account Transactions
parameters:
- $ref: "#/components/parameters/sync"
requestBody:
Expand All @@ -391,8 +395,7 @@ paths:
description: Get the details of a raw transaction sent by an account.
operationId: getRawTransactionDetails
tags:
- Accounts
- Transactions
- Account Transactions
responses:
"200":
description: OK
Expand All @@ -412,8 +415,7 @@ paths:
description: List fungible tokens that are enabled for an account.
operationId: listAccountFungibleTokens
tags:
- Accounts
- Fungible Tokens
- Account Fungible Tokens
responses:
"200":
description: OK
Expand All @@ -433,8 +435,7 @@ paths:
description: Get details (balance) regarding a fungible token for an account.
operationId: getAccountFungibleTokenDetails
tags:
- Accounts
- Fungible Tokens
- Account Fungible Tokens
responses:
"200":
description: OK
Expand All @@ -448,8 +449,7 @@ paths:
summary: Enable a fungible token for an account
operationId: enableFungibleTokenForAccount
tags:
- Accounts
- Fungible Tokens
- Account Fungible Tokens
parameters:
- $ref: "#/components/parameters/sync"
responses:
Expand All @@ -471,8 +471,7 @@ paths:
summary: List accounts withdrawals of a fungible token
operationId: listAccountFungibleTokenWithdrawals
tags:
- Accounts
- Fungible Tokens
- Account Fungible Tokens
responses:
"200":
description: OK
Expand All @@ -486,8 +485,7 @@ paths:
summary: Create a fungible token withdrawal
operationId: createFungibleTokenWithdrawal
tags:
- Accounts
- Fungible Tokens
- Account Fungible Tokens
requestBody:
content:
application/json:
Expand Down Expand Up @@ -515,9 +513,7 @@ paths:
summary: Get details of a fungible token withdrawal
operationId: getFungibleTokenWithdrawalDetails
tags:
- Accounts
- Fungible Tokens
- Transactions
- Account Fungible Tokens
responses:
"200":
description: OK
Expand All @@ -534,8 +530,7 @@ paths:
summary: List accounts deposits of a fungible token
operationId: listAccountFungibleTokenDeposits
tags:
- Accounts
- Fungible Tokens
- Account Fungible Tokens
responses:
"200":
description: OK
Expand All @@ -555,8 +550,7 @@ paths:
summary: Get details of a fungible token deposit
operationId: getFungibleTokenDepositDetails
tags:
- Accounts
- Fungible Tokens
- Account Fungible Tokens
responses:
"200":
description: OK
Expand All @@ -576,8 +570,7 @@ paths:
description: List all non-fungible tokens that are enabled for an account.
operationId: listAccountNonFungibleTokens
tags:
- Accounts
- Non-Fungible Tokens
- Account Non-Fungible Tokens
responses:
"200":
description: OK
Expand All @@ -597,8 +590,7 @@ paths:
description: Get details (balance) regarding a non-fungible token for an account.
operationId: listAccountNonFungibleTokenDetails
tags:
- Accounts
- Non-Fungible Tokens
- Account Non-Fungible Tokens
responses:
"200":
description: OK
Expand All @@ -612,8 +604,7 @@ paths:
summary: Enable a non-fungible token for an account
operationId: enableNonFungibleTokenForAccount
tags:
- Accounts
- Non-Fungible Tokens
- Account Non-Fungible Tokens
parameters:
- $ref: "#/components/parameters/sync"
responses:
Expand All @@ -634,8 +625,7 @@ paths:
summary: List withdrawals of a non-fungible token
operationId: listNonFungibleTokenWithdrawals
tags:
- Accounts
- Non-Fungible Tokens
- Account Non-Fungible Tokens
responses:
"200":
description: OK
Expand All @@ -649,8 +639,7 @@ paths:
summary: Create a non-fungible token withdrawal
operationId: createNonFungibleTokenWithdrawal
tags:
- Accounts
- Non-Fungible Tokens
- Account Non-Fungible Tokens
requestBody:
content:
application/json:
Expand All @@ -677,8 +666,7 @@ paths:
summary: Get details of a non-fungible token withdrawal
operationId: getNonFungibleTokenWithdrawalDetails
tags:
- Accounts
- Non-Fungible Tokens
- Account Non-Fungible Tokens
responses:
"200":
description: OK
Expand All @@ -695,8 +683,7 @@ paths:
summary: List deposits of a non-fungible token
operationId: listNonFungibleTokenDeposits
tags:
- Accounts
- Non-Fungible Tokens
- Account Non-Fungible Tokens
responses:
"200":
description: OK
Expand All @@ -716,8 +703,7 @@ paths:
summary: Get details of a non-fungible token deposit
operationId: getNonFungibleTokenDepositDetails
tags:
- Accounts
- Non-Fungible Tokens
- Account Non-Fungible Tokens
responses:
"200":
description: OK
Expand Down

0 comments on commit fa7d097

Please sign in to comment.