UPDATE: Add raster tiles
All checks were successful
Build and Release / release (push) Successful in 1m5s
All checks were successful
Build and Release / release (push) Successful in 1m5s
This commit is contained in:
88
docs/docs.go
88
docs/docs.go
@@ -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",
|
||||
|
||||
@@ -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": {
|
||||
"get": {
|
||||
"security": [
|
||||
@@ -1590,7 +1674,7 @@
|
||||
},
|
||||
"/users/{id}/application": {
|
||||
"get": {
|
||||
"description": "Retrieve media list by specific user ID",
|
||||
"description": "Retrieve application list by specific user ID",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1600,7 +1684,7 @@
|
||||
"tags": [
|
||||
"Users"
|
||||
],
|
||||
"summary": "Get user's media by user ID",
|
||||
"summary": "Get user's application by user ID",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
|
||||
@@ -948,6 +948,62 @@ paths:
|
||||
summary: Upload media (server-side)
|
||||
tags:
|
||||
- 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:
|
||||
get:
|
||||
consumes:
|
||||
@@ -1224,7 +1280,7 @@ paths:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Retrieve media list by specific user ID
|
||||
description: Retrieve application list by specific user ID
|
||||
parameters:
|
||||
- description: User ID
|
||||
in: path
|
||||
@@ -1242,7 +1298,7 @@ paths:
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$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:
|
||||
- Users
|
||||
/users/{id}/media:
|
||||
|
||||
Reference in New Issue
Block a user