UPDATE: Add raster tiles
All checks were successful
Build and Release / release (push) Successful in 1m5s

This commit is contained in:
2026-04-14 09:40:25 +07:00
parent 1cc87ec8a7
commit 73f43977fb
3 changed files with 230 additions and 6 deletions

View File

@@ -1107,6 +1107,90 @@ const docTemplate = `{
} }
} }
}, },
"/raster-tiles/metadata": {
"get": {
"description": "Retrieve map metadata",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Tile"
],
"summary": "Get raster tile metadata",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
}
}
}
}
},
"/raster-tiles/{z}/{x}/{y}": {
"get": {
"description": "Fetch vector or raster map tile data by Z, X, Y coordinates",
"produces": [
"application/octet-stream"
],
"tags": [
"Tile"
],
"summary": "Get a map raster tile",
"parameters": [
{
"type": "integer",
"description": "Zoom level (0-22)",
"name": "z",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "X coordinate",
"name": "x",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "Y coordinate",
"name": "y",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "file"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
}
}
}
}
},
"/roles": { "/roles": {
"get": { "get": {
"security": [ "security": [
@@ -1597,7 +1681,7 @@ const docTemplate = `{
}, },
"/users/{id}/application": { "/users/{id}/application": {
"get": { "get": {
"description": "Retrieve media list by specific user ID", "description": "Retrieve application list by specific user ID",
"consumes": [ "consumes": [
"application/json" "application/json"
], ],
@@ -1607,7 +1691,7 @@ const docTemplate = `{
"tags": [ "tags": [
"Users" "Users"
], ],
"summary": "Get user's media by user ID", "summary": "Get user's application by user ID",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",

View File

@@ -1100,6 +1100,90 @@
} }
} }
}, },
"/raster-tiles/metadata": {
"get": {
"description": "Retrieve map metadata",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Tile"
],
"summary": "Get raster tile metadata",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
}
}
}
}
},
"/raster-tiles/{z}/{x}/{y}": {
"get": {
"description": "Fetch vector or raster map tile data by Z, X, Y coordinates",
"produces": [
"application/octet-stream"
],
"tags": [
"Tile"
],
"summary": "Get a map raster tile",
"parameters": [
{
"type": "integer",
"description": "Zoom level (0-22)",
"name": "z",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "X coordinate",
"name": "x",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "Y coordinate",
"name": "y",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "file"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
}
}
}
}
},
"/roles": { "/roles": {
"get": { "get": {
"security": [ "security": [
@@ -1590,7 +1674,7 @@
}, },
"/users/{id}/application": { "/users/{id}/application": {
"get": { "get": {
"description": "Retrieve media list by specific user ID", "description": "Retrieve application list by specific user ID",
"consumes": [ "consumes": [
"application/json" "application/json"
], ],
@@ -1600,7 +1684,7 @@
"tags": [ "tags": [
"Users" "Users"
], ],
"summary": "Get user's media by user ID", "summary": "Get user's application by user ID",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",

View File

@@ -948,6 +948,62 @@ paths:
summary: Upload media (server-side) summary: Upload media (server-side)
tags: tags:
- Media - Media
/raster-tiles/{z}/{x}/{y}:
get:
description: Fetch vector or raster map tile data by Z, X, Y coordinates
parameters:
- description: Zoom level (0-22)
in: path
name: z
required: true
type: integer
- description: X coordinate
in: path
name: x
required: true
type: integer
- description: Y coordinate
in: path
name: "y"
required: true
type: integer
produces:
- application/octet-stream
responses:
"200":
description: OK
schema:
type: file
"400":
description: Bad Request
schema:
$ref: '#/definitions/history-api_internal_dtos_response.CommonResponse'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/history-api_internal_dtos_response.CommonResponse'
summary: Get a map raster tile
tags:
- Tile
/raster-tiles/metadata:
get:
consumes:
- application/json
description: Retrieve map metadata
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/history-api_internal_dtos_response.CommonResponse'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/history-api_internal_dtos_response.CommonResponse'
summary: Get raster tile metadata
tags:
- Tile
/roles: /roles:
get: get:
consumes: consumes:
@@ -1224,7 +1280,7 @@ paths:
get: get:
consumes: consumes:
- application/json - application/json
description: Retrieve media list by specific user ID description: Retrieve application list by specific user ID
parameters: parameters:
- description: User ID - description: User ID
in: path in: path
@@ -1242,7 +1298,7 @@ paths:
description: Internal Server Error description: Internal Server Error
schema: schema:
$ref: '#/definitions/history-api_internal_dtos_response.CommonResponse' $ref: '#/definitions/history-api_internal_dtos_response.CommonResponse'
summary: Get user's media by user ID summary: Get user's application by user ID
tags: tags:
- Users - Users
/users/{id}/media: /users/{id}/media: