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

FEAT: Update ListUsers Endpoint to Exclude Requesting User #67

Closed
wants to merge 4 commits into from
Closed
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
158 changes: 108 additions & 50 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 @@ -448,6 +447,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 @@ -1511,7 +1548,7 @@ const docTemplate = `{
},
"/users/list-users": {
"get": {
"description": "List users",
"description": "List all users except the one making the request",
"consumes": [
"application/json"
],
Expand All @@ -1522,15 +1559,36 @@ const docTemplate = `{
"user"
],
"summary": "GET All Users",
"parameters": [
{
"type": "string",
"description": "User Token",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"description": "Returns a list of all users, excluding the user who made the request",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/entity.UserResponse"
}
}
},
"404": {
"description": "User Not Found",
"schema": {
"type": "object"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"type": "object"
}
}
}
}
Expand Down Expand Up @@ -2133,37 +2191,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 +2230,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 +2268,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 +2404,7 @@ const docTemplate = `{
"github": {
"type": "string"
},
"idphotoHash": {
"id_photo_hash": {
"type": "string"
},
"keybase": {
Expand All @@ -2358,7 +2416,7 @@ const docTemplate = `{
"twitter": {
"type": "string"
},
"verificationPhotoHash": {
"verification_photo_hash": {
"type": "string"
}
}
Expand Down Expand Up @@ -2453,49 +2511,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 +2637,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
Loading