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

Swagger transaction fixes #421

Merged
merged 2 commits into from
Jan 9, 2024
Merged
Changes from 1 commit
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
22 changes: 11 additions & 11 deletions cmd/proxy/config/swagger/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2081,15 +2081,15 @@
}
}
},
"/transaction/{txhash}": {
"/transaction/{txHash}": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is another endpoint "/transaction/{hash}" down below, i think it's duplicated and it can be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, removed that one

"get": {
"tags": [
"transaction"
],
"summary": "returns the transaction which corresponds to the hash",
"parameters": [
{
"name": "txhash",
"name": "txHash",
"in": "path",
"description": "the transaction hash to search for",
"required": true,
Expand Down Expand Up @@ -2162,7 +2162,7 @@
"summary": "returns the transaction and results which correspond to the hash",
"parameters": [
{
"name": "txhash",
"name": "txHash",
"in": "path",
"description": "the transaction hash to search for",
"required": true,
Expand All @@ -2180,7 +2180,7 @@
"schema": {
"type": "object",
"items": {
"$ref": "#/components/schemas/AddressEsdtToken"
"$ref": "#/components/schemas/Transaction"
}
}
}
Expand All @@ -2197,7 +2197,7 @@
"summary": "returns the transaction which corresponds to the hash (faster because will ask for transaction from the observer which is in the shard in which the address is part).",
"parameters": [
{
"name": "txhash",
"name": "txHash",
"in": "path",
"description": "the transaction hash to search for",
"required": true,
Expand Down Expand Up @@ -2239,7 +2239,7 @@
"summary": "returns the transaction which corresponds to the hash (faster because will ask for transaction from the observer which is in the shard in which the address is part).",
"parameters": [
{
"name": "txhash",
"name": "txHash",
"in": "path",
"description": "the transaction hash to search for",
"required": true,
Expand Down Expand Up @@ -2281,7 +2281,7 @@
"summary": "returns the status of the transaction which corresponds to the hash (faster because will ask for transaction status from the observer which is in the shard in which the address is part).",
"parameters": [
{
"name": "txhash",
"name": "txHash",
"in": "path",
"description": "the transaction hash to search for",
"required": true,
Expand Down Expand Up @@ -2315,15 +2315,15 @@
}
}
},
"/transaction/{txhash}/status": {
"/transaction/{txHash}/status": {
"get": {
"tags": [
"transaction"
],
"summary": "returns the status of the transaction which corresponds to the hash",
"parameters": [
{
"name": "txhash",
"name": "txHash",
"in": "path",
"description": "the transaction hash to search for",
"required": true,
Expand All @@ -2347,15 +2347,15 @@
}
}
},
"/transaction/{txhash}/process-status": {
"/transaction/{txHash}/process-status": {
"get": {
"tags": [
"transaction"
],
"summary": "returns the processing status of the transaction which corresponds to the hash. It searches for SCRs generated by the transaction and computes the actual processing status",
"parameters": [
{
"name": "txhash",
"name": "txHash",
"in": "path",
"description": "the transaction hash to search for",
"required": true,
Expand Down
Loading