diff --git a/docs/docs.go b/docs/docs.go index 073a1ac..6ce6173 100644 --- a/docs/docs.go +++ b/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", diff --git a/docs/swagger.json b/docs/swagger.json index 20fe6f4..56f1bd0 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -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", diff --git a/docs/swagger.yaml b/docs/swagger.yaml index bcf061d..dbc9096 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -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: