Skip to content

Commit

Permalink
Merge pull request #143 from tonkeeper/encrypted_comment
Browse files Browse the repository at this point in the history
add encrypted comment into swagger
  • Loading branch information
mr-tron authored Jul 18, 2023
2 parents b2c5ae2 + 5ced71c commit d50f3cc
Show file tree
Hide file tree
Showing 4 changed files with 372 additions and 23 deletions.
26 changes: 26 additions & 0 deletions api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1604,6 +1604,23 @@
],
"type": "object"
},
"EncryptedComment": {
"properties": {
"cipher_text": {
"example": "A6A0BD6608672B...CE3AF8DB",
"type": "string"
},
"encryption_type": {
"example": "simple",
"type": "string"
}
},
"required": [
"encryption_type",
"cipher_text"
],
"type": "object"
},
"Error": {
"properties": {
"error": {
Expand Down Expand Up @@ -1912,6 +1929,9 @@
"example": "Hi! This is your salary. \nFrom accounting with love.",
"type": "string"
},
"encrypted_comment": {
"$ref": "#/components/schemas/EncryptedComment"
},
"jetton": {
"$ref": "#/components/schemas/JettonPreview"
},
Expand Down Expand Up @@ -2229,6 +2249,9 @@
"example": "Hi! This is your salary. \nFrom accounting with love.",
"type": "string"
},
"encrypted_comment": {
"$ref": "#/components/schemas/EncryptedComment"
},
"nft": {
"example": "",
"type": "string"
Expand Down Expand Up @@ -2851,6 +2874,9 @@
"example": "Hi! This is your salary. \nFrom accounting with love.",
"type": "string"
},
"encrypted_comment": {
"$ref": "#/components/schemas/EncryptedComment"
},
"recipient": {
"$ref": "#/components/schemas/AccountAddress"
},
Expand Down
18 changes: 18 additions & 0 deletions api/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3607,6 +3607,8 @@ components:
comment:
type: string
example: "Hi! This is your salary. \nFrom accounting with love."
encrypted_comment:
$ref: '#/components/schemas/EncryptedComment'
refund:
$ref: '#/components/schemas/Refund'

Expand Down Expand Up @@ -3650,6 +3652,8 @@ components:
comment:
type: string
example: "Hi! This is your salary. \nFrom accounting with love."
encrypted_comment:
$ref: '#/components/schemas/EncryptedComment'
payload:
type: string
description: raw hex encoded payload
Expand Down Expand Up @@ -3682,6 +3686,8 @@ components:
comment:
type: string
example: "Hi! This is your salary. \nFrom accounting with love."
encrypted_comment:
$ref: '#/components/schemas/EncryptedComment'
refund:
$ref: '#/components/schemas/Refund'
jetton:
Expand Down Expand Up @@ -4609,6 +4615,18 @@ components:
file_hash:
type: string
example: A6A0BD6608672B11B79538A50B2204E748305C12AA0DED9C16CF0006CE3AF8DB
EncryptedComment:
type: object
required:
- encryption_type
- cipher_text
properties:
encryption_type:
type: string
example: "simple"
cipher_text:
type: string
example: "A6A0BD6608672B...CE3AF8DB"

responses:
NotFound:
Expand Down
Loading

0 comments on commit d50f3cc

Please sign in to comment.