Skip to content

Commit

Permalink
fix: update doc string for supplies
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasbhat0 committed Oct 15, 2024
1 parent dfb7442 commit 42709a1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/api/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ const docTemplate = `{
"tags": [
"Supplies"
],
"summary": "Get Supplies",
"summary": "Get Circulating Supply",
"responses": {
"200": {
"description": "OK",
Expand All @@ -679,7 +679,7 @@ const docTemplate = `{
"tags": [
"Supplies"
],
"summary": "Get Supplies",
"summary": "Get Market Cap",
"responses": {
"200": {
"description": "OK",
Expand All @@ -706,7 +706,7 @@ const docTemplate = `{
"tags": [
"Supplies"
],
"summary": "Get Supplies",
"summary": "Get Total Supply",
"responses": {
"200": {
"description": "OK",
Expand Down
6 changes: 3 additions & 3 deletions src/api/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@
"tags": [
"Supplies"
],
"summary": "Get Supplies",
"summary": "Get Circulating Supply",
"responses": {
"200": {
"description": "OK",
Expand All @@ -671,7 +671,7 @@
"tags": [
"Supplies"
],
"summary": "Get Supplies",
"summary": "Get Market Cap",
"responses": {
"200": {
"description": "OK",
Expand All @@ -698,7 +698,7 @@
"tags": [
"Supplies"
],
"summary": "Get Supplies",
"summary": "Get Total Supply",
"responses": {
"200": {
"description": "OK",
Expand Down
6 changes: 3 additions & 3 deletions src/api/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ paths:
schema:
additionalProperties: true
type: object
summary: Get Supplies
summary: Get Circulating Supply
tags:
- Supplies
/api/v1/supplies/market-cap:
Expand All @@ -785,7 +785,7 @@ paths:
schema:
additionalProperties: true
type: object
summary: Get Supplies
summary: Get Market Cap
tags:
- Supplies
/api/v1/supplies/total-supply:
Expand All @@ -803,7 +803,7 @@ paths:
schema:
additionalProperties: true
type: object
summary: Get Supplies
summary: Get Total Supply
tags:
- Supplies
/api/v1/transactions:
Expand Down
9 changes: 5 additions & 4 deletions src/api/rest/supplies.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package rest

import (
"encoding/json"
"strconv"

"github.com/gofiber/fiber/v2"
"github.com/sudoblockio/icon-go-api/config"
"strconv"
)

func SuppliesAddHandlers(app *fiber.App) {
Expand Down Expand Up @@ -39,7 +40,7 @@ func handlerGetSupplies(c *fiber.Ctx) error {
}

// Circulating Supply
// @Summary Get Supplies
// @Summary Get Circulating Supply
// @Description get circulating supply (total supply - burn wallet balance)
// @Tags Supplies
// @BasePath /api/v1
Expand All @@ -53,7 +54,7 @@ func handlerGetSuppliesCirculatingSupply(c *fiber.Ctx) error {
}

// Total Supply
// @Summary Get Supplies
// @Summary Get Total Supply
// @Description get total supply
// @Tags Supplies
// @BasePath /api/v1
Expand All @@ -67,7 +68,7 @@ func handlerGetSuppliesTotalSupply(c *fiber.Ctx) error {
}

// Market Cap
// @Summary Get Supplies
// @Summary Get Market Cap
// @Description get mkt cap (Coin Gecko Price * circulating supply)
// @Tags Supplies
// @BasePath /api/v1
Expand Down

0 comments on commit 42709a1

Please sign in to comment.