Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add encrypted comment into swagger #143

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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