Update API Documentation and Enhance Tender Query Parameters

- Changed references in API documentation from `main.HealthResponse` to `bootstrap.HealthResponse` for consistency.
- Added new query parameters `publication_from` and `publication_to` to the tender listing and recommendation endpoints to allow filtering by publication date.
- Updated the `ListTendersRequest` struct to include optional fields for `from` and `to` timestamps.
- Modified the `TenderRepository` and `TenderService` interfaces to support the new filtering parameters in the tender listing functionality.
- Enhanced the service and handler layers to process the new query parameters, improving the flexibility of tender retrieval.
This commit is contained in:
n.nakhostin
2025-09-02 11:03:38 +03:30
parent cbf45a812d
commit c684a12155
7 changed files with 203 additions and 102 deletions
+41 -25
View File
@@ -1,5 +1,28 @@
basePath: /
definitions:
bootstrap.HealthResponse:
properties:
service:
description: Service name
example: tender-management-api
type: string
status:
description: Current health status
example: healthy
type: string
time:
description: Current Unix timestamp
example: 1699123456
type: integer
uptime:
description: Service uptime duration
example: 24h30m15s
type: string
version:
description: API version
example: 2.0.0
type: string
type: object
company.AddTagsForm:
properties:
categories:
@@ -810,29 +833,6 @@ definitions:
- feedback_type
- tender_id
type: object
main.HealthResponse:
properties:
service:
description: Service name
example: tender-management-api
type: string
status:
description: Current health status
example: healthy
type: string
time:
description: Current Unix timestamp
example: 1699123456
type: integer
uptime:
description: Service uptime duration
example: 24h30m15s
type: string
version:
description: API version
example: 2.0.0
type: string
type: object
response.APIError:
properties:
code:
@@ -3469,11 +3469,11 @@ paths:
"200":
description: System is healthy and operational
schema:
$ref: '#/definitions/main.HealthResponse'
$ref: '#/definitions/bootstrap.HealthResponse'
"503":
description: System is unhealthy or experiencing issues
schema:
$ref: '#/definitions/main.HealthResponse'
$ref: '#/definitions/bootstrap.HealthResponse'
summary: Health check endpoint
tags:
- Admin-Health
@@ -5284,6 +5284,14 @@ paths:
in: query
name: max_estimated_value
type: number
- description: Publication from
in: query
name: publication_from
type: number
- description: Publication to
in: query
name: publication_to
type: number
produces:
- application/json
responses:
@@ -5371,6 +5379,14 @@ paths:
in: query
name: max_estimated_value
type: number
- description: Publication from
in: query
name: publication_from
type: number
- description: Publication to
in: query
name: publication_to
type: number
produces:
- application/json
responses: