Add Flags Assets and Update Configuration

- Introduced multiple SVG flag assets to the project, enhancing the visual representation of country flags.
- Updated the configuration file to include a new path for the flags assets, ensuring proper access and organization.
- Modified the main application to accommodate the new flags path, improving the overall asset management in the application.
This commit is contained in:
n.nakhostin
2025-09-09 14:48:02 +03:30
parent c06ea278c0
commit c873635f6f
281 changed files with 11567 additions and 23 deletions
+82 -5
View File
@@ -1960,6 +1960,43 @@ const docTemplate = `{
}
}
},
"/admin/v1/flags/{country_code}": {
"get": {
"security": [
{
"BearerAuth": []
}
],
"description": "Retrieve a country flag by its 3-letter country code for admin panel",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Admin Flags"
],
"summary": "Get flag by country code (Admin)",
"parameters": [
{
"type": "string",
"description": "3-letter country code (e.g., POL, GRC)",
"name": "country_code",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "SVG content",
"schema": {
"type": "string"
}
}
}
}
},
"/admin/v1/health": {
"get": {
"description": "Get comprehensive server health status including system information, dependencies status, and performance metrics. This endpoint is used for monitoring and load balancer health checks.",
@@ -4003,6 +4040,38 @@ const docTemplate = `{
}
}
},
"/api/v1//{country_code}": {
"get": {
"description": "Retrieve only the SVG content of a country flag by its 3-letter country code",
"consumes": [
"application/json"
],
"produces": [
"image/svg+xml"
],
"tags": [
"Flags"
],
"summary": "Get flag SVG",
"parameters": [
{
"type": "string",
"description": "3-letter country code (e.g., POL, GRC)",
"name": "country_code",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "SVG content",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/companies": {
"get": {
"security": [
@@ -6307,25 +6376,25 @@ const docTemplate = `{
"$ref": "#/definitions/customer.CompanySummary"
}
},
"companyIDs": {
"company_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"createdAt": {
"created_at": {
"type": "integer"
},
"email": {
"type": "string"
},
"fullName": {
"full_name": {
"type": "string"
},
"id": {
"type": "string"
},
"lastLoginAt": {
"last_login_at": {
"type": "integer"
},
"password": {
@@ -6340,7 +6409,7 @@ const docTemplate = `{
"type": {
"type": "string"
},
"updatedAt": {
"updated_at": {
"type": "integer"
},
"username": {
@@ -7320,6 +7389,10 @@ const docTemplate = `{
"description": "Administrative inquiry management operations for web panel including CRUD operations, search, statistics, and comprehensive filtering with pagination",
"name": "Admin-Inquiries"
},
{
"description": "Administrative flag management operations for web panel including flag listing and retrieval",
"name": "Admin-Flags"
},
{
"description": "Customer authentication and authorization operations for mobile application including login, logout, token refresh, and profile access",
"name": "Authorization"
@@ -7343,6 +7416,10 @@ const docTemplate = `{
{
"description": "Public inquiry management operations for mobile application including inquiry submission and inquiry listing",
"name": "Inquiries"
},
{
"description": "Public flag management operations for mobile application including flag retrieval and listing",
"name": "Flags"
}
]
}`
+82 -5
View File
@@ -1954,6 +1954,43 @@
}
}
},
"/admin/v1/flags/{country_code}": {
"get": {
"security": [
{
"BearerAuth": []
}
],
"description": "Retrieve a country flag by its 3-letter country code for admin panel",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Admin Flags"
],
"summary": "Get flag by country code (Admin)",
"parameters": [
{
"type": "string",
"description": "3-letter country code (e.g., POL, GRC)",
"name": "country_code",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "SVG content",
"schema": {
"type": "string"
}
}
}
}
},
"/admin/v1/health": {
"get": {
"description": "Get comprehensive server health status including system information, dependencies status, and performance metrics. This endpoint is used for monitoring and load balancer health checks.",
@@ -3997,6 +4034,38 @@
}
}
},
"/api/v1//{country_code}": {
"get": {
"description": "Retrieve only the SVG content of a country flag by its 3-letter country code",
"consumes": [
"application/json"
],
"produces": [
"image/svg+xml"
],
"tags": [
"Flags"
],
"summary": "Get flag SVG",
"parameters": [
{
"type": "string",
"description": "3-letter country code (e.g., POL, GRC)",
"name": "country_code",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "SVG content",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/companies": {
"get": {
"security": [
@@ -6301,25 +6370,25 @@
"$ref": "#/definitions/customer.CompanySummary"
}
},
"companyIDs": {
"company_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"createdAt": {
"created_at": {
"type": "integer"
},
"email": {
"type": "string"
},
"fullName": {
"full_name": {
"type": "string"
},
"id": {
"type": "string"
},
"lastLoginAt": {
"last_login_at": {
"type": "integer"
},
"password": {
@@ -6334,7 +6403,7 @@
"type": {
"type": "string"
},
"updatedAt": {
"updated_at": {
"type": "integer"
},
"username": {
@@ -7314,6 +7383,10 @@
"description": "Administrative inquiry management operations for web panel including CRUD operations, search, statistics, and comprehensive filtering with pagination",
"name": "Admin-Inquiries"
},
{
"description": "Administrative flag management operations for web panel including flag listing and retrieval",
"name": "Admin-Flags"
},
{
"description": "Customer authentication and authorization operations for mobile application including login, logout, token refresh, and profile access",
"name": "Authorization"
@@ -7337,6 +7410,10 @@
{
"description": "Public inquiry management operations for mobile application including inquiry submission and inquiry listing",
"name": "Inquiries"
},
{
"description": "Public flag management operations for mobile application including flag retrieval and listing",
"name": "Flags"
}
]
}
+57 -5
View File
@@ -359,19 +359,19 @@ definitions:
items:
$ref: '#/definitions/customer.CompanySummary'
type: array
companyIDs:
company_ids:
items:
type: string
type: array
createdAt:
created_at:
type: integer
email:
type: string
fullName:
full_name:
type: string
id:
type: string
lastLoginAt:
last_login_at:
type: integer
password:
type: string
@@ -381,7 +381,7 @@ definitions:
type: string
type:
type: string
updatedAt:
updated_at:
type: integer
username:
type: string
@@ -2242,6 +2242,30 @@ paths:
summary: Get feedback by ID
tags:
- Admin-Feedback
/admin/v1/flags/{country_code}:
get:
consumes:
- application/json
description: Retrieve a country flag by its 3-letter country code for admin
panel
parameters:
- description: 3-letter country code (e.g., POL, GRC)
in: path
name: country_code
required: true
type: string
produces:
- application/json
responses:
"200":
description: SVG content
schema:
type: string
security:
- BearerAuth: []
summary: Get flag by country code (Admin)
tags:
- Admin Flags
/admin/v1/health:
get:
consumes:
@@ -3557,6 +3581,28 @@ paths:
summary: Update user status
tags:
- Admin-Users
/api/v1//{country_code}:
get:
consumes:
- application/json
description: Retrieve only the SVG content of a country flag by its 3-letter
country code
parameters:
- description: 3-letter country code (e.g., POL, GRC)
in: path
name: country_code
required: true
type: string
produces:
- image/svg+xml
responses:
"200":
description: SVG content
schema:
type: string
summary: Get flag SVG
tags:
- Flags
/api/v1/companies:
get:
consumes:
@@ -4681,6 +4727,9 @@ tags:
- description: Administrative inquiry management operations for web panel including
CRUD operations, search, statistics, and comprehensive filtering with pagination
name: Admin-Inquiries
- description: Administrative flag management operations for web panel including flag
listing and retrieval
name: Admin-Flags
- description: Customer authentication and authorization operations for mobile application
including login, logout, token refresh, and profile access
name: Authorization
@@ -4699,3 +4748,6 @@ tags:
- description: Public inquiry management operations for mobile application including
inquiry submission and inquiry listing
name: Inquiries
- description: Public flag management operations for mobile application including
flag retrieval and listing
name: Flags