Fix url param name (#370)

Fix URL parameter name in swagger documentation
This commit is contained in:
Ben Guidarelli 2023-06-01 16:02:11 -04:00 committed by GitHub
parent a835a220fe
commit 6cbdf36b2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -930,7 +930,7 @@ const docTemplate = `{
}
}
},
"/api/v1/token/{chain}/{token_address}": {
"/api/v1/token/{chain_id}/{token_address}": {
"get": {
"description": "Returns a token symbol, coingecko id and address by chain and token address.",
"tags": [

View File

@ -922,7 +922,7 @@
}
}
},
"/api/v1/token/{chain}/{token_address}": {
"/api/v1/token/{chain_id}/{token_address}": {
"get": {
"description": "Returns a token symbol, coingecko id and address by chain and token address.",
"tags": [

View File

@ -1313,7 +1313,7 @@ paths:
description: Internal Server Error
tags:
- Wormscan
/api/v1/token/{chain}/{token_address}:
/api/v1/token/{chain_id}/{token_address}:
get:
description: Returns a token symbol, coingecko id and address by chain and token
address.

View File

@ -328,7 +328,7 @@ func convertToDecimal(amount decimal.Decimal) decimal.Decimal {
// @Success 200 {object} Token
// @Failure 400
// @Failure 404
// @Router /api/v1/token/{chain}/{token_address} [get]
// @Router /api/v1/token/{chain_id}/{token_address} [get]
func (c *Controller) GetTokenByChainAndAddress(ctx *fiber.Ctx) error {
chain, err := middleware.ExtractChainID(ctx, c.logger)
if err != nil {