tebakaja commited on
Commit
460c52a
1 Parent(s): f118f03

update: repair Swagger OpenAPI Configuration

Browse files
proxy/crypto/prediction_handler.go CHANGED
@@ -21,7 +21,7 @@ import (
21
  // @Produce json
22
  // @Param requestBody body PredictionRequest true "Request Body"
23
  // @Success 200 {object} PredictionResponse
24
- // @Router /crypto/lists [post]
25
  func CryptoPredictionHandler(service CryptoService) fiber.Handler {
26
  return func(c *fiber.Ctx) error {
27
  ctx, cancel := context.WithTimeout(c.Context(), 120 * time.Second)
 
21
  // @Produce json
22
  // @Param requestBody body PredictionRequest true "Request Body"
23
  // @Success 200 {object} PredictionResponse
24
+ // @Router /crypto/prediction [post]
25
  func CryptoPredictionHandler(service CryptoService) fiber.Handler {
26
  return func(c *fiber.Ctx) error {
27
  ctx, cancel := context.WithTimeout(c.Context(), 120 * time.Second)
proxy/national_currency/prediction_handler.go CHANGED
@@ -21,7 +21,7 @@ import (
21
  // @Produce json
22
  // @Param requestBody body PredictionRequest true "Request Body"
23
  // @Success 200 {object} PredictionResponse
24
- // @Router /national-currency/lists [post]
25
  func NationalCurrencyPredictionHandler(service NationalCurrencyService) fiber.Handler {
26
  return func(c *fiber.Ctx) error {
27
  ctx, cancel := context.WithTimeout(c.Context(), 120*time.Second)
 
21
  // @Produce json
22
  // @Param requestBody body PredictionRequest true "Request Body"
23
  // @Success 200 {object} PredictionResponse
24
+ // @Router /national-currency/prediction [post]
25
  func NationalCurrencyPredictionHandler(service NationalCurrencyService) fiber.Handler {
26
  return func(c *fiber.Ctx) error {
27
  ctx, cancel := context.WithTimeout(c.Context(), 120*time.Second)
proxy/stock/prediction_handler.go CHANGED
@@ -21,7 +21,7 @@ import (
21
  // @Produce json
22
  // @Param requestBody body PredictionRequest true "Request Body"
23
  // @Success 200 {object} PredictionResponse
24
- // @Router /stock/lists [post]
25
  func StockPredictionHandler(service StockService) fiber.Handler {
26
  return func(c *fiber.Ctx) error {
27
  ctx, cancel := context.WithTimeout(c.Context(), 120 * time.Second)
 
21
  // @Produce json
22
  // @Param requestBody body PredictionRequest true "Request Body"
23
  // @Success 200 {object} PredictionResponse
24
+ // @Router /stock/prediction [post]
25
  func StockPredictionHandler(service StockService) fiber.Handler {
26
  return func(c *fiber.Ctx) error {
27
  ctx, cancel := context.WithTimeout(c.Context(), 120 * time.Second)