Refactor ScrapePortalsResponse structure and update API documentation
continuous-integration/drone/push Build is passing

- Changed the ScrapePortalsResponse type to return a slice of strings representing portal identifiers instead of a structured object.
- Updated the Swagger documentation for the GetScrapePortals endpoint to reflect the new response format, ensuring clarity in API usage.

This update simplifies the response structure for the scraping portals, enhancing the API's usability and consistency.
This commit is contained in:
Mazyar
2026-06-18 20:56:31 +03:30
parent e5fa0dfe47
commit 6fb57c41c1
2 changed files with 3 additions and 13 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ func (h *Handler) ScrapeDocumentsBatch(c echo.Context) error {
// @Description Retrieve the list of document scraping portals supported by the Opplens AI service
// @Tags Admin-AI-Pipeline
// @Produce json
// @Success 200 {object} response.APIResponse{data=ai_summarizer.ScrapePortalsResponse} "Scrape portals retrieved successfully"
// @Success 200 {object} response.APIResponse{data=[]string} "Scrape portals retrieved successfully"
// @Failure 401 {object} response.APIResponse
// @Failure 500 {object} response.APIResponse
// @Failure 503 {object} response.APIResponse