Fix url param name (#370)
Fix URL parameter name in swagger documentation
This commit is contained in:
parent
a835a220fe
commit
6cbdf36b2c
|
@ -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": [
|
||||
|
|
|
@ -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": [
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue