Spaces:
Sleeping
Sleeping
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/
|
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/
|
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/
|
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)
|