From 8a4ad07e469aa72438ee42536f1ae77d2be01555 Mon Sep 17 00:00:00 2001 From: Elshimy Ziad Magdy Taha Date: Thu, 18 Dec 2025 14:02:13 +0500 Subject: [PATCH] fix swagger --- services/api/pkg/http/job.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/api/pkg/http/job.go b/services/api/pkg/http/job.go index f15f1ef..a4daa6b 100644 --- a/services/api/pkg/http/job.go +++ b/services/api/pkg/http/job.go @@ -85,9 +85,9 @@ func (h *JobHandler) CreateJob(w http.ResponseWriter, r *http.Request) error { // @Param pageSize query int false "Number of elements" // @Accept json // @Produce json -// @Success 201 {object} map[string]string "Successfully retrieved jobs" -// @Failure 400 {object} map[string]string "Invalid request data" -// @Failure 500 {object} map[string]string "Internal server error" +// @Success 200 {object} map[string]any "Successfully retrieved jobs" +// @Failure 400 {object} map[string]any "Invalid request data" +// @Failure 500 {object} map[string]any "Internal server error" // @Router /jobs [get] func (h *JobHandler) GetJobs(w http.ResponseWriter, r *http.Request) error { query := ports.GetJobQuery{