feat: initialize Swagger documentation for authentication and proxy endpoints
Build and Release / release (push) Successful in 1m36s

This commit is contained in:
2026-05-27 18:36:56 +07:00
parent d02006390b
commit 1d0733819d
3 changed files with 384 additions and 0 deletions
+144
View File
@@ -2885,6 +2885,150 @@ const docTemplate = `{
}
}
},
"/relations/entities-by-geometries": {
"get": {
"description": "Get entities grouped by geometry IDs",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Relations"
],
"summary": "Get entities by geometry IDs",
"parameters": [
{
"minItems": 1,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "csv",
"name": "geometry_ids",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
}
},
"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"
}
}
}
}
},
"/relations/wiki-contents/preview": {
"get": {
"description": "Get previews of specific wiki contents by a list of their IDs",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Relations"
],
"summary": "Get wiki content previews by IDs",
"parameters": [
{
"minItems": 1,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "csv",
"name": "ids",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
}
},
"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"
}
}
}
}
},
"/relations/wikis-by-entities": {
"get": {
"description": "Get wikis grouped by entity IDs",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Relations"
],
"summary": "Get wikis by entity IDs",
"parameters": [
{
"minItems": 1,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "csv",
"name": "entity_ids",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
}
},
"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": [