Skip to content

Commit 30efd7b

Browse files
[skip ci] Add swagger.yaml
1 parent acf351d commit 30efd7b

1 file changed

Lines changed: 136 additions & 0 deletions

File tree

swagger.yaml

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31572,6 +31572,117 @@ paths:
3157231572
summary: Associate the user with the provided Hedera token.
3157331573
tags:
3157431574
- tokens
31575+
/tokens/{tokenId}/transfer:
31576+
post:
31577+
description: >-
31578+
Transfers fungible or non-fungible tokens from the authenticated user's
31579+
Hedera account to the specified target account. For FT, specify amount.
31580+
For NFT, specify serialNumbers or amount (picks from end).
31581+
operationId: TokensApi_transferToken
31582+
parameters:
31583+
- name: tokenId
31584+
required: true
31585+
in: path
31586+
description: Token ID
31587+
schema:
31588+
example: 69aeb71ef8c5b278e3bab4e5
31589+
type: string
31590+
requestBody:
31591+
required: true
31592+
content:
31593+
application/json:
31594+
schema:
31595+
$ref: '#/components/schemas/TransferTokenDTO'
31596+
responses:
31597+
'200':
31598+
description: Successful operation.
31599+
'401':
31600+
description: Unauthorized request.
31601+
content:
31602+
application/json:
31603+
schema:
31604+
$ref: '#/components/schemas/UnauthorizedErrorDTO'
31605+
example:
31606+
statusCode: 401
31607+
message: Unauthorized request
31608+
'403':
31609+
description: Forbidden
31610+
content:
31611+
application/json:
31612+
schema:
31613+
$ref: '#/components/schemas/ForbiddenErrorDTO'
31614+
example:
31615+
message: Forbidden resource
31616+
error: Forbidden
31617+
statusCode: 403
31618+
'500':
31619+
description: Internal server error.
31620+
content:
31621+
application/json:
31622+
schema:
31623+
$ref: '#/components/schemas/InternalServerErrorDTO'
31624+
security:
31625+
- bearer: []
31626+
summary: Transfers tokens from the authenticated user to the target account.
31627+
tags:
31628+
- tokens
31629+
/tokens/push/{tokenId}/transfer:
31630+
post:
31631+
description: >-
31632+
Transfers fungible or non-fungible tokens asynchronously. Returns a task
31633+
ID for tracking.
31634+
operationId: TokensApi_transferTokenAsync
31635+
parameters:
31636+
- name: tokenId
31637+
required: true
31638+
in: path
31639+
description: Token ID
31640+
schema:
31641+
example: 69aeb71ef8c5b278e3bab4e5
31642+
type: string
31643+
requestBody:
31644+
required: true
31645+
content:
31646+
application/json:
31647+
schema:
31648+
$ref: '#/components/schemas/TransferTokenDTO'
31649+
responses:
31650+
'200':
31651+
description: Successful operation.
31652+
content:
31653+
application/json:
31654+
schema:
31655+
$ref: '#/components/schemas/TaskDTO'
31656+
'401':
31657+
description: Unauthorized request.
31658+
content:
31659+
application/json:
31660+
schema:
31661+
$ref: '#/components/schemas/UnauthorizedErrorDTO'
31662+
example:
31663+
statusCode: 401
31664+
message: Unauthorized request
31665+
'403':
31666+
description: Forbidden
31667+
content:
31668+
application/json:
31669+
schema:
31670+
$ref: '#/components/schemas/ForbiddenErrorDTO'
31671+
example:
31672+
message: Forbidden resource
31673+
error: Forbidden
31674+
statusCode: 403
31675+
'500':
31676+
description: Internal server error.
31677+
content:
31678+
application/json:
31679+
schema:
31680+
$ref: '#/components/schemas/InternalServerErrorDTO'
31681+
security:
31682+
- bearer: []
31683+
summary: Transfers tokens from the authenticated user to the target account.
31684+
tags:
31685+
- tokens
3157531686
/tokens/{tokenId}/{username}/grant-kyc:
3157631687
put:
3157731688
description: >-
@@ -55516,6 +55627,31 @@ components:
5551655627
- enableFreeze
5551755628
- enableKYC
5551855629
- enableWipe
55630+
TransferTokenDTO:
55631+
type: object
55632+
properties:
55633+
targetAccount:
55634+
type: string
55635+
description: Target Hedera account ID
55636+
example: 0.0.12345
55637+
amount:
55638+
type: number
55639+
description: Amount (FT) or serial count to pick (NFT); must be > 0
55640+
example: 10
55641+
serialNumbers:
55642+
description: Specific NFT serial numbers to transfer; positive integers
55643+
example:
55644+
- 1
55645+
- 2
55646+
- 3
55647+
type: array
55648+
items:
55649+
type: number
55650+
memo:
55651+
type: string
55652+
description: Optional transaction memo
55653+
required:
55654+
- targetAccount
5551955655
ThemeRoleDTO:
5552055656
type: object
5552155657
properties:

0 commit comments

Comments
 (0)