diff --git a/docs/docs.go b/docs/docs.go index 88d16fa..ec5580c 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -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": [ diff --git a/docs/swagger.json b/docs/swagger.json index a1ef7e3..77c8597 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -2878,6 +2878,150 @@ } } }, + "/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": [ diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 3b2348d..f49414e 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -2623,6 +2623,102 @@ paths: summary: Get raster tile metadata tags: - Tile + /relations/entities-by-geometries: + get: + consumes: + - application/json + description: Get entities grouped by geometry IDs + parameters: + - collectionFormat: csv + in: query + items: + type: string + minItems: 1 + name: geometry_ids + required: true + type: array + produces: + - application/json + 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' + summary: Get entities by geometry IDs + tags: + - Relations + /relations/wiki-contents/preview: + get: + consumes: + - application/json + description: Get previews of specific wiki contents by a list of their IDs + parameters: + - collectionFormat: csv + in: query + items: + type: string + minItems: 1 + name: ids + required: true + type: array + produces: + - application/json + 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' + summary: Get wiki content previews by IDs + tags: + - Relations + /relations/wikis-by-entities: + get: + consumes: + - application/json + description: Get wikis grouped by entity IDs + parameters: + - collectionFormat: csv + in: query + items: + type: string + minItems: 1 + name: entity_ids + required: true + type: array + produces: + - application/json + 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' + summary: Get wikis by entity IDs + tags: + - Relations /roles: get: consumes: