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": {
"get": {
"security": [
@@ -1597,7 +1681,7 @@ const docTemplate = `{
},
"/users/{id}/application": {
"get": {
"description": "Retrieve media list by specific user ID",
"description": "Retrieve application list by specific user ID",
"consumes": [
"application/json"
],
@@ -1607,7 +1691,7 @@ const docTemplate = `{
"tags": [
"Users"
],
"summary": "Get user's media by user ID",
"summary": "Get user's application by user ID",
"parameters": [
{
"type": "string",