Skip to content

Commit

Permalink
Refactor property names in swagger.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
wjuniorbh92 committed Nov 13, 2023
1 parent d80f2d9 commit fb19fff
Show file tree
Hide file tree
Showing 3 changed files with 280 additions and 143 deletions.
149 changes: 100 additions & 49 deletions backend/docs/docs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Code generated by swaggo/swag. DO NOT EDIT.

// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs

import "github.com/swaggo/swag"
Expand Down Expand Up @@ -114,7 +113,7 @@ const docTemplate = `{
},
"/assets": {
"get": {
"description": "Get all assets",
"description": "Get all assets with optional pagination",
"consumes": [
"application/json"
],
Expand All @@ -125,6 +124,20 @@ const docTemplate = `{
"Assets"
],
"summary": "Get all assets",
"parameters": [
{
"type": "integer",
"description": "Page number",
"name": "page",
"in": "query"
},
{
"type": "integer",
"description": "Number of items per page",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
Expand Down Expand Up @@ -448,6 +461,44 @@ const docTemplate = `{
}
}
},
"/assets/toml": {
"get": {
"description": "Get TOML data",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Assets"
],
"summary": "Get TOML data",
"parameters": [
{
"type": "string",
"description": "Asset issuer",
"name": "asset_issuer",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/entity.TomlData"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/v1.response"
}
}
}
}
},
"/assets/transfer": {
"post": {
"description": "Transfer an asset between wallets on Stellar",
Expand Down Expand Up @@ -2133,37 +2184,37 @@ const docTemplate = `{
"entity.Currency": {
"type": "object",
"properties": {
"anchorAsset": {
"anchor_asset": {
"type": "string"
},
"anchorAssetType": {
"anchor_asset_type": {
"type": "string"
},
"approvalCriteria": {
"approval_criteria": {
"type": "string"
},
"approvalServer": {
"approval_server": {
"type": "string"
},
"attestationOfReserve": {
"attestation_of_reserve": {
"type": "string"
},
"code": {
"type": "string"
},
"collateralAddressMessages": {
"collateral_address_messages": {
"type": "array",
"items": {
"type": "string"
}
},
"collateralAddressSignatures": {
"collateral_address_signatures": {
"type": "array",
"items": {
"type": "string"
}
},
"collateralAddresses": {
"collateral_addresses": {
"type": "array",
"items": {
"type": "string"
Expand All @@ -2172,34 +2223,34 @@ const docTemplate = `{
"conditions": {
"type": "string"
},
"description": {
"desc": {
"type": "string"
},
"displayDecimals": {
"display_decimals": {
"type": "integer"
},
"fixedNumber": {
"fixed_number": {
"type": "integer"
},
"image": {
"type": "string"
},
"isAssetAnchored": {
"is_asset_anchored": {
"type": "boolean"
},
"isUnlimited": {
"is_unlimited": {
"type": "boolean"
},
"issuer": {
"type": "string"
},
"maxNumber": {
"max_number": {
"type": "integer"
},
"name": {
"type": "string"
},
"redemptionInstructions": {
"redemption_instructions": {
"type": "string"
},
"regulated": {
Expand All @@ -2210,43 +2261,43 @@ const docTemplate = `{
"entity.Documentation": {
"type": "object",
"properties": {
"orgDBA": {
"ORG_DBA": {
"type": "string"
},
"orgDescription": {
"ORG_DESCRIPTION": {
"type": "string"
},
"orgGithub": {
"ORG_GITHUB": {
"type": "string"
},
"orgKeybase": {
"ORG_KEYBASE": {
"type": "string"
},
"orgLogo": {
"ORG_LOGO": {
"type": "string"
},
"orgName": {
"ORG_NAME": {
"type": "string"
},
"orgOfficialEmail": {
"ORG_OFFICIAL_EMAIL": {
"type": "string"
},
"orgPhoneNumber": {
"ORG_PHONE_NUMBER": {
"type": "string"
},
"orgPhoneNumberAttestation": {
"ORG_PHONE_NUMBER_ATTESTATION": {
"type": "string"
},
"orgPhysicalAddress": {
"ORG_PHYSICAL_ADDRESS": {
"type": "string"
},
"orgPhysicalAddressAttestation": {
"ORG_PHYSICAL_ADDRESS_ATTESTATION": {
"type": "string"
},
"orgTwitter": {
"ORG_TWITTER": {
"type": "string"
},
"orgURL": {
"ORG_URL": {
"type": "string"
}
}
Expand Down Expand Up @@ -2346,7 +2397,7 @@ const docTemplate = `{
"github": {
"type": "string"
},
"idphotoHash": {
"id_photo_hash": {
"type": "string"
},
"keybase": {
Expand All @@ -2358,7 +2409,7 @@ const docTemplate = `{
"twitter": {
"type": "string"
},
"verificationPhotoHash": {
"verification_photo_hash": {
"type": "string"
}
}
Expand Down Expand Up @@ -2453,49 +2504,49 @@ const docTemplate = `{
"entity.TomlData": {
"type": "object",
"properties": {
"accounts": {
"ACCOUNTS": {
"type": "array",
"items": {
"type": "string"
}
},
"currencies": {
"CURRENCIES": {
"type": "array",
"items": {
"$ref": "#/definitions/entity.Currency"
}
},
"documentation": {
"DOCUMENTATION": {
"$ref": "#/definitions/entity.Documentation"
},
"federationServer": {
"FEDERATION_SERVER": {
"type": "string"
},
"horizonURL": {
"HORIZON_URL": {
"type": "string"
},
"networkPassphrase": {
"NETWORK_PASSPHRASE": {
"type": "string"
},
"principals": {
"PRINCIPALS": {
"type": "array",
"items": {
"$ref": "#/definitions/entity.Principal"
}
},
"signingKey": {
"SIGNING_KEY": {
"type": "string"
},
"transferServer": {
"TRANSFER_SERVER": {
"type": "string"
},
"validators": {
"VALIDATORS": {
"type": "array",
"items": {
"$ref": "#/definitions/entity.Validator"
}
},
"version": {
"VERSION": {
"type": "string"
}
}
Expand Down Expand Up @@ -2579,19 +2630,19 @@ const docTemplate = `{
"entity.Validator": {
"type": "object",
"properties": {
"alias": {
"ALIAS": {
"type": "string"
},
"displayName": {
"DISPLAY_NAME": {
"type": "string"
},
"history": {
"HISTORY": {
"type": "string"
},
"host": {
"HOST": {
"type": "string"
},
"publicKey": {
"PUBLIC_KEY": {
"type": "string"
}
}
Expand Down
Loading

0 comments on commit fb19fff

Please sign in to comment.