From 91f43afa9770d153bb0561f6f019f751614fe9f9 Mon Sep 17 00:00:00 2001 From: Fransolet Thomas Date: Fri, 10 Feb 2023 17:41:18 +0100 Subject: [PATCH] Add language param in export (audio) --- .flutter-plugins-dependencies | 2 +- lib/Services/apiService.dart | 4 +- lib/Services/downloadConfiguration.dart | 4 +- lib/api/swagger.yaml | 5890 ++++++++------------ manager_api/doc/ConfigurationApi.md | 6 +- manager_api/lib/api/configuration_api.dart | 14 +- 6 files changed, 2299 insertions(+), 3621 deletions(-) diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index bdf93c6..4aac427 100644 --- a/.flutter-plugins-dependencies +++ b/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"audio_session","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\audio_session-0.1.13\\\\","native_build":true,"dependencies":[]},{"name":"flutter_beacon","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_beacon-0.5.1\\\\","native_build":true,"dependencies":[]},{"name":"just_audio","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\just_audio-0.9.31\\\\","native_build":true,"dependencies":["audio_session"]},{"name":"path_provider_foundation","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_foundation-2.1.1\\\\","native_build":true,"dependencies":[]},{"name":"permission_handler","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\permission_handler-8.3.0\\\\","native_build":true,"dependencies":[]},{"name":"qr_code_scanner","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\qr_code_scanner-1.0.1\\\\","native_build":true,"dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.2.4+1\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"audio_session","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\audio_session-0.1.13\\\\","native_build":true,"dependencies":[]},{"name":"flutter_beacon","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_beacon-0.5.1\\\\","native_build":true,"dependencies":[]},{"name":"just_audio","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\just_audio-0.9.31\\\\","native_build":true,"dependencies":["audio_session"]},{"name":"path_provider_android","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_android-2.0.22\\\\","native_build":true,"dependencies":[]},{"name":"permission_handler","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\permission_handler-8.3.0\\\\","native_build":true,"dependencies":[]},{"name":"qr_code_scanner","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\qr_code_scanner-1.0.1\\\\","native_build":true,"dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.2.4+1\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"audio_session","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\audio_session-0.1.13\\\\","native_build":true,"dependencies":[]},{"name":"just_audio","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\just_audio-0.9.31\\\\","native_build":true,"dependencies":["audio_session"]},{"name":"path_provider_foundation","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_foundation-2.1.1\\\\","native_build":true,"dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.2.4+1\\\\","native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_linux-2.1.7\\\\","native_build":false,"dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_windows-2.1.3\\\\","native_build":false,"dependencies":[]}],"web":[{"name":"audio_session","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\audio_session-0.1.13\\\\","dependencies":[]},{"name":"just_audio_web","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\just_audio_web-0.4.7\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"audio_session","dependencies":[]},{"name":"flutter_beacon","dependencies":[]},{"name":"just_audio","dependencies":["just_audio_web","audio_session","path_provider"]},{"name":"just_audio_web","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"permission_handler","dependencies":[]},{"name":"qr_code_scanner","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2023-02-10 17:09:46.854097","version":"3.7.0"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"audio_session","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\audio_session-0.1.13\\\\","native_build":true,"dependencies":[]},{"name":"flutter_beacon","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_beacon-0.5.1\\\\","native_build":true,"dependencies":[]},{"name":"just_audio","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\just_audio-0.9.31\\\\","native_build":true,"dependencies":["audio_session"]},{"name":"path_provider_foundation","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_foundation-2.1.1\\\\","native_build":true,"dependencies":[]},{"name":"permission_handler","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\permission_handler-8.3.0\\\\","native_build":true,"dependencies":[]},{"name":"qr_code_scanner","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\qr_code_scanner-1.0.1\\\\","native_build":true,"dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.2.4+1\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"audio_session","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\audio_session-0.1.13\\\\","native_build":true,"dependencies":[]},{"name":"flutter_beacon","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_beacon-0.5.1\\\\","native_build":true,"dependencies":[]},{"name":"just_audio","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\just_audio-0.9.31\\\\","native_build":true,"dependencies":["audio_session"]},{"name":"path_provider_android","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_android-2.0.22\\\\","native_build":true,"dependencies":[]},{"name":"permission_handler","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\permission_handler-8.3.0\\\\","native_build":true,"dependencies":[]},{"name":"qr_code_scanner","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\qr_code_scanner-1.0.1\\\\","native_build":true,"dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.2.4+1\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"audio_session","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\audio_session-0.1.13\\\\","native_build":true,"dependencies":[]},{"name":"just_audio","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\just_audio-0.9.31\\\\","native_build":true,"dependencies":["audio_session"]},{"name":"path_provider_foundation","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_foundation-2.1.1\\\\","native_build":true,"dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.2.4+1\\\\","native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_linux-2.1.7\\\\","native_build":false,"dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_windows-2.1.3\\\\","native_build":false,"dependencies":[]}],"web":[{"name":"audio_session","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\audio_session-0.1.13\\\\","dependencies":[]},{"name":"just_audio_web","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\just_audio_web-0.4.7\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"audio_session","dependencies":[]},{"name":"flutter_beacon","dependencies":[]},{"name":"just_audio","dependencies":["just_audio_web","audio_session","path_provider"]},{"name":"just_audio_web","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"permission_handler","dependencies":[]},{"name":"qr_code_scanner","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2023-02-10 17:36:53.315670","version":"3.7.0"} \ No newline at end of file diff --git a/lib/Services/apiService.dart b/lib/Services/apiService.dart index 77d9714..afab9ba 100644 --- a/lib/Services/apiService.dart +++ b/lib/Services/apiService.dart @@ -173,11 +173,11 @@ class ApiService { } } - static Future exportConfiguration(Client client, String configurationId) async { + static Future exportConfiguration(Client client, String configurationId, String language) async { try { bool isOnline = await hasNetwork(); if(isOnline) { - ExportConfigurationDTO? exportConfiguration = await client.configurationApi!.configurationExport(configurationId); + ExportConfigurationDTO? exportConfiguration = await client.configurationApi!.configurationExport(configurationId, language: language); return exportConfiguration; } else { diff --git a/lib/Services/downloadConfiguration.dart b/lib/Services/downloadConfiguration.dart index 58a4c04..e48994f 100644 --- a/lib/Services/downloadConfiguration.dart +++ b/lib/Services/downloadConfiguration.dart @@ -12,8 +12,8 @@ class DownloadConfiguration { static Future downloadClicked(AppContext appContext, ConfigurationDTO configuration) async { print("COUCOUCOU IIIIINNNN"); - // TODO TEST VIA EXPORT - ExportConfigurationDTO? exportConfigurationDTO = await ApiService.exportConfiguration(appContext.clientAPI, configuration.id!); + // TODO ADD POPUP LANGUAGE SELECTION + ExportConfigurationDTO? exportConfigurationDTO = await ApiService.exportConfiguration(appContext.clientAPI, configuration.id!, (appContext.getContext() as VisitAppContext).language!); if(exportConfigurationDTO != null) { // Delete all from local DB ref to this configurationId then add it all diff --git a/lib/api/swagger.yaml b/lib/api/swagger.yaml index 1a8da0a..67d1ea9 100644 --- a/lib/api/swagger.yaml +++ b/lib/api/swagger.yaml @@ -1,3611 +1,2279 @@ -{ - "x-generator": "NSwag v13.10.8.0 (NJsonSchema v10.3.11.0 (Newtonsoft.Json v10.0.0.0))", - "openapi": "3.0.0", - "info": { - "title": "Manager Service", - "description": "API Manager Service", - "version": "Version Alpha" - }, - "servers": [ - { - "url": "https://api.mymuseum.be" - } - ], - "paths": { - "/api/Configuration": { - "get": { - "tags": [ - "Configuration" - ], - "operationId": "Configuration_Get", - "parameters": [ - { - "name": "instanceId", - "in": "query", - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ConfigurationDTO" - } - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - } - }, - "post": { - "tags": [ - "Configuration" - ], - "operationId": "Configuration_Create", - "requestBody": { - "x-name": "newConfiguration", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigurationDTO" - } - } - }, - "required": true, - "x-position": 1 - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigurationDTO" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "409": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - }, - "put": { - "tags": [ - "Configuration" - ], - "operationId": "Configuration_Update", - "requestBody": { - "x-name": "updatedConfiguration", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigurationDTO" - } - } - }, - "required": true, - "x-position": 1 - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigurationDTO" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Configuration/{id}": { - "get": { - "tags": [ - "Configuration" - ], - "operationId": "Configuration_GetDetail", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigurationDTO" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - } - }, - "delete": { - "tags": [ - "Configuration" - ], - "operationId": "Configuration_Delete", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "202": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Configuration/{id}/export": { - "get": { - "tags": [ - "Configuration" - ], - "operationId": "Configuration_Export", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/octet-stream": { - "schema": { - "type": "string", - "format": "binary" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - } - } - }, - "/api/Configuration/import": { - "post": { - "tags": [ - "Configuration" - ], - "operationId": "Configuration_Import", - "requestBody": { - "x-name": "exportConfiguration", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ExportConfigurationDTO" - } - } - }, - "required": true, - "x-position": 1 - }, - "responses": { - "202": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "409": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Device": { - "get": { - "tags": [ - "Device" - ], - "operationId": "Device_Get", - "parameters": [ - { - "name": "instanceId", - "in": "query", - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DeviceDTO" - } - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - }, - "post": { - "tags": [ - "Device" - ], - "operationId": "Device_Create", - "requestBody": { - "x-name": "newDevice", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DeviceDetailDTO" - } - } - }, - "required": true, - "x-position": 1 - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DeviceDetailDTO" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "409": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - } - }, - "put": { - "tags": [ - "Device" - ], - "operationId": "Device_Update", - "requestBody": { - "x-name": "updatedDevice", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DeviceDetailDTO" - } - } - }, - "required": true, - "x-position": 1 - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DeviceDetailDTO" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Device/{id}/detail": { - "get": { - "tags": [ - "Device" - ], - "operationId": "Device_GetDetail", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DeviceDetailDTO" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - } - } - }, - "/api/Device/mainInfos": { - "put": { - "tags": [ - "Device" - ], - "operationId": "Device_UpdateMainInfos", - "requestBody": { - "x-name": "deviceIn", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DeviceDTO" - } - } - }, - "required": true, - "x-position": 1 - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DeviceDTO" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Device/{id}": { - "delete": { - "tags": [ - "Device" - ], - "operationId": "Device_Delete", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "202": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Instance": { - "get": { - "tags": [ - "Instance" - ], - "operationId": "Instance_Get", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Instance" - } - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - }, - "post": { - "tags": [ - "Instance" - ], - "operationId": "Instance_CreateInstance", - "requestBody": { - "x-name": "newInstance", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Instance" - } - } - }, - "required": true, - "x-position": 1 - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InstanceDTO" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "409": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - }, - "put": { - "tags": [ - "Instance" - ], - "operationId": "Instance_Updateinstance", - "requestBody": { - "x-name": "updatedInstance", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Instance" - } - } - }, - "required": true, - "x-position": 1 - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InstanceDTO" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Instance/{id}": { - "get": { - "tags": [ - "Instance" - ], - "operationId": "Instance_GetDetail", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InstanceDTO" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - }, - "delete": { - "tags": [ - "Instance" - ], - "operationId": "Instance_DeleteInstance", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "202": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Resource": { - "get": { - "tags": [ - "Resource" - ], - "operationId": "Resource_Get", - "parameters": [ - { - "name": "instanceId", - "in": "query", - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - }, - { - "name": "types", - "in": "query", - "style": "form", - "explode": true, - "schema": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/ResourceType" - } - }, - "x-position": 2 - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ResourceDTO" - } - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - }, - "post": { - "tags": [ - "Resource" - ], - "operationId": "Resource_Create", - "requestBody": { - "x-name": "newResource", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ResourceDTO" - } - } - }, - "required": true, - "x-position": 1 - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ResourceDTO" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "409": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - }, - "put": { - "tags": [ - "Resource" - ], - "operationId": "Resource_Update", - "requestBody": { - "x-name": "updatedResource", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ResourceDTO" - } - } - }, - "required": true, - "x-position": 1 - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ResourceDTO" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Resource/{id}/detail": { - "get": { - "tags": [ - "Resource" - ], - "operationId": "Resource_GetDetail", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ResourceDTO" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - } - } - }, - "/api/Resource/{id}": { - "get": { - "tags": [ - "Resource" - ], - "operationId": "Resource_Show", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/octet-stream": { - "schema": { - "type": "string", - "format": "binary" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - } - }, - "delete": { - "tags": [ - "Resource" - ], - "operationId": "Resource_Delete", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "202": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Resource/upload": { - "post": { - "tags": [ - "Resource" - ], - "operationId": "Resource_Upload", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "properties": { - "label": { - "type": "string", - "nullable": true - }, - "type": { - "type": "string", - "nullable": true - }, - "instanceId": { - "type": "string", - "nullable": true - } - } - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Section": { - "get": { - "tags": [ - "Section" - ], - "operationId": "Section_Get", - "parameters": [ - { - "name": "instanceId", - "in": "query", - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SectionDTO" - } - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - }, - "post": { - "tags": [ - "Section" - ], - "operationId": "Section_Create", - "requestBody": { - "x-name": "newSection", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SectionDTO" - } - } - }, - "required": true, - "x-position": 1 - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SectionDTO" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "409": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - }, - "put": { - "tags": [ - "Section" - ], - "operationId": "Section_Update", - "requestBody": { - "x-name": "updatedSection", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SectionDTO" - } - } - }, - "required": true, - "x-position": 1 - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SectionDTO" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Section/configuration/{id}": { - "get": { - "tags": [ - "Section" - ], - "operationId": "Section_GetFromConfiguration", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SectionDTO" - } - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - } - }, - "delete": { - "tags": [ - "Section" - ], - "operationId": "Section_DeleteAllForConfiguration", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "202": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Section/{id}/subsections": { - "get": { - "tags": [ - "Section" - ], - "operationId": "Section_GetAllSectionSubSections", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": {} - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Section/{id}": { - "get": { - "tags": [ - "Section" - ], - "operationId": "Section_GetDetail", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SectionDTO" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - } - }, - "delete": { - "tags": [ - "Section" - ], - "operationId": "Section_Delete", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "202": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Section/beacons/{id}": { - "get": { - "tags": [ - "Section" - ], - "operationId": "Section_GetAllBeaconsForInstance", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SectionDTO" - } - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - } - } - }, - "/api/Section/order": { - "put": { - "tags": [ - "Section" - ], - "operationId": "Section_UpdateOrder", - "requestBody": { - "x-name": "updatedSectionsOrder", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SectionDTO" - } - } - } - }, - "required": true, - "x-position": 1 - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Section/MapDTO": { - "get": { - "tags": [ - "Section" - ], - "operationId": "Section_GetMapDTO", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MapDTO" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Section/SliderDTO": { - "get": { - "tags": [ - "Section" - ], - "operationId": "Section_GetSliderDTO", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SliderDTO" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Section/VideoDTO": { - "get": { - "tags": [ - "Section" - ], - "operationId": "Section_GetVideoDTO", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/VideoDTO" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Section/WebDTO": { - "get": { - "tags": [ - "Section" - ], - "operationId": "Section_GetWebDTO", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/WebDTO" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Section/MenuDTO": { - "get": { - "tags": [ - "Section" - ], - "operationId": "Section_GetMenuDTO", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MenuDTO" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Section/PlayerMessageDTO": { - "get": { - "tags": [ - "Section" - ], - "operationId": "Section_PlayerMessageDTO", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PlayerMessageDTO" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Section/QuizzDTO": { - "get": { - "tags": [ - "Section" - ], - "operationId": "Section_GetQuizzDTO", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/QuizzDTO" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Section/ArticleDTO": { - "get": { - "tags": [ - "Section" - ], - "operationId": "Section_GetArticleDTO", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ArticleDTO" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/User": { - "get": { - "tags": [ - "User" - ], - "operationId": "User_Get", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/User" - } - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - }, - "post": { - "tags": [ - "User" - ], - "operationId": "User_CreateUser", - "requestBody": { - "x-name": "newUser", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/User" - } - } - }, - "required": true, - "x-position": 1 - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserDetailDTO" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "409": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - }, - "put": { - "tags": [ - "User" - ], - "operationId": "User_UpdateUser", - "requestBody": { - "x-name": "updatedUser", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/User" - } - } - }, - "required": true, - "x-position": 1 - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserDetailDTO" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/User/{id}": { - "get": { - "tags": [ - "User" - ], - "operationId": "User_GetDetail", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserDetailDTO" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - }, - "delete": { - "tags": [ - "User" - ], - "operationId": "User_DeleteUser", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "nullable": true - }, - "x-position": 1 - } - ], - "responses": { - "202": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ] - } - }, - "/api/Authentication/Token": { - "post": { - "tags": [ - "Authentication" - ], - "operationId": "Authentication_AuthenticateWithForm", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "properties": { - "grant_type": { - "type": "string", - "nullable": true - }, - "username": { - "type": "string", - "nullable": true - }, - "password": { - "type": "string", - "nullable": true - }, - "client_id": { - "type": "string", - "nullable": true - }, - "client_secret": { - "type": "string", - "nullable": true - } - } - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TokenDTO" - } - } - } - }, - "401": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - } - } - }, - "/api/Authentication/Authenticate": { - "post": { - "tags": [ - "Authentication" - ], - "operationId": "Authentication_AuthenticateWithJson", - "requestBody": { - "x-name": "login", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/LoginDTO" - } - } - }, - "required": true, - "x-position": 1 - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TokenDTO" - } - } - } - }, - "401": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "500": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - } - } - } - }, - "components": { - "schemas": { - "ConfigurationDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "type": "string", - "nullable": true - }, - "label": { - "type": "string", - "nullable": true - }, - "title": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/TranslationDTO" - } - }, - "imageId": { - "type": "string", - "nullable": true - }, - "imageSource": { - "type": "string", - "nullable": true - }, - "primaryColor": { - "type": "string", - "nullable": true - }, - "secondaryColor": { - "type": "string", - "nullable": true - }, - "languages": { - "type": "array", - "nullable": true, - "items": { - "type": "string" - } - }, - "dateCreation": { - "type": "string", - "format": "date-time" - }, - "isMobile": { - "type": "boolean" - }, - "isTablet": { - "type": "boolean" - }, - "isOffline": { - "type": "boolean" - }, - "instanceId": { - "type": "string", - "nullable": true - } - } - }, - "TranslationDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "language": { - "type": "string", - "nullable": true - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "ExportConfigurationDTO": { - "allOf": [ - { - "$ref": "#/components/schemas/ConfigurationDTO" - }, - { - "type": "object", - "additionalProperties": false, - "properties": { - "sections": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/SectionDTO" - } - }, - "resources": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/ResourceDTO" - } - } - } - } - ] - }, - "SectionDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "type": "string", - "nullable": true - }, - "label": { - "type": "string", - "nullable": true - }, - "title": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/TranslationDTO" - } - }, - "description": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/TranslationDTO" - } - }, - "imageId": { - "type": "string", - "nullable": true - }, - "imageSource": { - "type": "string", - "nullable": true - }, - "configurationId": { - "type": "string", - "nullable": true - }, - "isSubSection": { - "type": "boolean" - }, - "parentId": { - "type": "string", - "nullable": true - }, - "type": { - "$ref": "#/components/schemas/SectionType" - }, - "data": { - "type": "string", - "nullable": true - }, - "dateCreation": { - "type": "string", - "format": "date-time" - }, - "order": { - "type": "integer", - "format": "int32" - }, - "instanceId": { - "type": "string", - "nullable": true - }, - "latitude": { - "type": "string", - "nullable": true - }, - "longitude": { - "type": "string", - "nullable": true - }, - "meterZoneGPS": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "isBeacon": { - "type": "boolean" - }, - "beaconId": { - "type": "string", - "nullable": true - } - } - }, - "SectionType": { - "type": "integer", - "description": "0 = Map\n1 = Slider\n2 = Video\n3 = Web\n4 = Menu\n5 = Quizz\n6 = Article", - "x-enumNames": [ - "Map", - "Slider", - "Video", - "Web", - "Menu", - "Quizz", - "Article" - ], - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6 - ] - }, - "ResourceDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "type": "string", - "nullable": true - }, - "type": { - "$ref": "#/components/schemas/ResourceType" - }, - "label": { - "type": "string", - "nullable": true - }, - "data": { - "type": "string", - "nullable": true - }, - "dateCreation": { - "type": "string", - "format": "date-time" - }, - "instanceId": { - "type": "string", - "nullable": true - } - } - }, - "ResourceType": { - "type": "integer", - "description": "0 = Image\n1 = Video\n2 = ImageUrl\n3 = VideoUrl\n4 = Audio", - "x-enumNames": [ - "Image", - "Video", - "ImageUrl", - "VideoUrl", - "Audio" - ], - "enum": [ - 0, - 1, - 2, - 3, - 4 - ] - }, - "DeviceDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "type": "string", - "nullable": true - }, - "identifier": { - "type": "string", - "nullable": true - }, - "name": { - "type": "string", - "nullable": true - }, - "ipAddressWLAN": { - "type": "string", - "nullable": true - }, - "ipAddressETH": { - "type": "string", - "nullable": true - }, - "configurationId": { - "type": "string", - "nullable": true - }, - "configuration": { - "type": "string", - "nullable": true - }, - "connected": { - "type": "boolean" - }, - "dateCreation": { - "type": "string", - "format": "date-time" - }, - "dateUpdate": { - "type": "string", - "format": "date-time" - }, - "instanceId": { - "type": "string", - "nullable": true - } - } - }, - "DeviceDetailDTO": { - "allOf": [ - { - "$ref": "#/components/schemas/DeviceDTO" - }, - { - "type": "object", - "additionalProperties": false, - "properties": { - "connectionLevel": { - "type": "string", - "nullable": true - }, - "lastConnectionLevel": { - "type": "string", - "format": "date-time" - }, - "batteryLevel": { - "type": "string", - "nullable": true - }, - "lastBatteryLevel": { - "type": "string", - "format": "date-time" - } - } - } - ] - }, - "Instance": { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "type": "string", - "nullable": true - }, - "name": { - "type": "string", - "nullable": true - }, - "dateCreation": { - "type": "string", - "format": "date-time" - } - } - }, - "InstanceDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "type": "string", - "nullable": true - }, - "name": { - "type": "string", - "nullable": true - }, - "dateCreation": { - "type": "string", - "format": "date-time" - } - } - }, - "MapDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "zoom": { - "type": "integer", - "format": "int32" - }, - "mapType": { - "$ref": "#/components/schemas/MapTypeApp" - }, - "points": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/GeoPointDTO" - } - }, - "iconResourceId": { - "type": "string", - "nullable": true - }, - "iconSource": { - "type": "string", - "nullable": true - } - } - }, - "MapTypeApp": { - "type": "integer", - "description": "0 = none\n1 = normal\n2 = satellite\n3 = terrain\n4 = hybrid", - "x-enumNames": [ - "none", - "normal", - "satellite", - "terrain", - "hybrid" - ], - "enum": [ - 0, - 1, - 2, - 3, - 4 - ] - }, - "GeoPointDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "type": "integer", - "format": "int32" - }, - "title": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/TranslationDTO" - } - }, - "description": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/TranslationDTO" - } - }, - "images": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/ImageGeoPoint" - } - }, - "latitude": { - "type": "string", - "nullable": true - }, - "longitude": { - "type": "string", - "nullable": true - } - } - }, - "ImageGeoPoint": { - "type": "object", - "additionalProperties": false, - "properties": { - "imageResourceId": { - "type": "string", - "nullable": true - }, - "imageSource": { - "type": "string", - "nullable": true - } - } - }, - "SliderDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "images": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/ImageDTO" - } - } - } - }, - "ImageDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "title": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/TranslationDTO" - } - }, - "description": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/TranslationDTO" - } - }, - "resourceId": { - "type": "string", - "nullable": true - }, - "source": { - "type": "string", - "nullable": true - }, - "order": { - "type": "integer", - "format": "int32" - } - } - }, - "VideoDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "source": { - "type": "string", - "nullable": true - } - } - }, - "WebDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "source": { - "type": "string", - "nullable": true - } - } - }, - "MenuDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "sections": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/SectionDTO" - } - } - } - }, - "PlayerMessageDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "configChanged": { - "type": "boolean" - }, - "isDeleted": { - "type": "boolean" - } - } - }, - "QuizzDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "questions": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/QuestionDTO" - } - }, - "bad_level": { - "nullable": true, - "oneOf": [ - { - "$ref": "#/components/schemas/LevelDTO" - } - ] - }, - "medium_level": { - "nullable": true, - "oneOf": [ - { - "$ref": "#/components/schemas/LevelDTO" - } - ] - }, - "good_level": { - "nullable": true, - "oneOf": [ - { - "$ref": "#/components/schemas/LevelDTO" - } - ] - }, - "great_level": { - "nullable": true, - "oneOf": [ - { - "$ref": "#/components/schemas/LevelDTO" - } - ] - } - } - }, - "QuestionDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "label": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/TranslationDTO" - } - }, - "responses": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/ResponseDTO" - } - }, - "resourceId": { - "type": "string", - "nullable": true - }, - "source": { - "type": "string", - "nullable": true - }, - "order": { - "type": "integer", - "format": "int32" - } - } - }, - "ResponseDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "label": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/TranslationDTO" - } - }, - "isGood": { - "type": "boolean" - }, - "order": { - "type": "integer", - "format": "int32" - } - } - }, - "LevelDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "label": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/TranslationDTO" - } - }, - "resourceId": { - "type": "string", - "nullable": true - }, - "source": { - "type": "string", - "nullable": true - } - } - }, - "ArticleDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "content": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/TranslationDTO" - } - }, - "isContentTop": { - "type": "boolean" - }, - "audioIds": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/TranslationDTO" - } - }, - "isReadAudioAuto": { - "type": "boolean" - }, - "images": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/ImageDTO" - } - } - } - }, - "User": { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "type": "string", - "nullable": true - }, - "email": { - "type": "string", - "nullable": true - }, - "password": { - "type": "string", - "nullable": true - }, - "firstName": { - "type": "string", - "nullable": true - }, - "lastName": { - "type": "string", - "nullable": true - }, - "token": { - "type": "string", - "nullable": true - }, - "dateCreation": { - "type": "string", - "format": "date-time" - }, - "instanceId": { - "type": "string", - "nullable": true - } - } - }, - "UserDetailDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "type": "string", - "nullable": true - }, - "email": { - "type": "string", - "nullable": true - }, - "firstName": { - "type": "string", - "nullable": true - }, - "lastName": { - "type": "string", - "nullable": true - } - } - }, - "TokenDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "access_token": { - "type": "string", - "nullable": true - }, - "refresh_token": { - "type": "string", - "nullable": true - }, - "scope": { - "type": "string", - "nullable": true - }, - "token_type": { - "type": "string", - "nullable": true - }, - "expires_in": { - "type": "integer", - "format": "int32" - }, - "expiration": { - "type": "string", - "format": "date-time" - }, - "instanceId": { - "type": "string", - "nullable": true - } - } - }, - "LoginDTO": { - "type": "object", - "additionalProperties": false, - "properties": { - "email": { - "type": "string", - "nullable": true - }, - "password": { - "type": "string", - "nullable": true - } - } - } - }, - "securitySchemes": { - "bearer": { - "type": "oauth2", - "description": "Manager Authentication", - "flows": { - "password": { - "authorizationUrl": "/authentication/Token", - "tokenUrl": "/api/authentication/Token", - "scopes": { - "Manager-api": "Manager WebAPI" - } - } - } - } - } - }, - "security": [ - { - "bearer": [] - } - ], - "tags": [ - { - "name": "Configuration", - "description": "Configuration management" - }, - { - "name": "Device", - "description": "Device management" - }, - { - "name": "Instance", - "description": "Instance management" - }, - { - "name": "Resource", - "description": "Resource management" - }, - { - "name": "Section", - "description": "Section management" - }, - { - "name": "User", - "description": "User management" - }, - { - "name": "Authentication", - "description": "Authentication management" - } - ] -} \ No newline at end of file +x-generator: NSwag v13.10.8.0 (NJsonSchema v10.3.11.0 (Newtonsoft.Json v10.0.0.0)) +openapi: 3.0.0 +info: + title: Manager Service + description: API Manager Service + version: Version Alpha +servers: + - url: http://localhost:5000 +paths: + /api/Configuration: + get: + tags: + - Configuration + operationId: Configuration_Get + parameters: + - name: instanceId + in: query + schema: + type: string + nullable: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ConfigurationDTO' + '500': + description: '' + content: + application/json: + schema: + type: string + post: + tags: + - Configuration + operationId: Configuration_Create + requestBody: + x-name: newConfiguration + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigurationDTO' + required: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigurationDTO' + '400': + description: '' + content: + application/json: + schema: + type: string + '409': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + put: + tags: + - Configuration + operationId: Configuration_Update + requestBody: + x-name: updatedConfiguration + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigurationDTO' + required: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigurationDTO' + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Configuration/{id}: + get: + tags: + - Configuration + operationId: Configuration_GetDetail + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigurationDTO' + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + delete: + tags: + - Configuration + operationId: Configuration_Delete + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '202': + description: '' + content: + application/json: + schema: + type: string + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Configuration/{id}/export: + get: + tags: + - Configuration + operationId: Configuration_Export + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + - name: language + in: query + schema: + type: string + nullable: true + x-position: 2 + responses: + '200': + description: '' + content: + application/octet-stream: + schema: + type: string + format: binary + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + /api/Configuration/import: + post: + tags: + - Configuration + operationId: Configuration_Import + requestBody: + x-name: exportConfiguration + content: + application/json: + schema: + $ref: '#/components/schemas/ExportConfigurationDTO' + required: true + x-position: 1 + responses: + '202': + description: '' + content: + application/json: + schema: + type: string + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '409': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Device: + get: + tags: + - Device + operationId: Device_Get + parameters: + - name: instanceId + in: query + schema: + type: string + nullable: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceDTO' + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + post: + tags: + - Device + operationId: Device_Create + requestBody: + x-name: newDevice + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceDetailDTO' + required: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceDetailDTO' + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '409': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + put: + tags: + - Device + operationId: Device_Update + requestBody: + x-name: updatedDevice + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceDetailDTO' + required: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceDetailDTO' + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Device/{id}/detail: + get: + tags: + - Device + operationId: Device_GetDetail + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceDetailDTO' + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + /api/Device/mainInfos: + put: + tags: + - Device + operationId: Device_UpdateMainInfos + requestBody: + x-name: deviceIn + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceDTO' + required: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceDTO' + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Device/{id}: + delete: + tags: + - Device + operationId: Device_Delete + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '202': + description: '' + content: + application/json: + schema: + type: string + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Instance: + get: + tags: + - Instance + operationId: Instance_Get + responses: + '200': + description: '' + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Instance' + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + post: + tags: + - Instance + operationId: Instance_CreateInstance + requestBody: + x-name: newInstance + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + required: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/InstanceDTO' + '400': + description: '' + content: + application/json: + schema: + type: string + '409': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + put: + tags: + - Instance + operationId: Instance_Updateinstance + requestBody: + x-name: updatedInstance + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + required: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/InstanceDTO' + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Instance/{id}: + get: + tags: + - Instance + operationId: Instance_GetDetail + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/InstanceDTO' + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + delete: + tags: + - Instance + operationId: Instance_DeleteInstance + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '202': + description: '' + content: + application/json: + schema: + type: string + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Resource: + get: + tags: + - Resource + operationId: Resource_Get + parameters: + - name: instanceId + in: query + schema: + type: string + nullable: true + x-position: 1 + - name: types + in: query + style: form + explode: true + schema: + type: array + nullable: true + items: + $ref: '#/components/schemas/ResourceType' + x-position: 2 + responses: + '200': + description: '' + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ResourceDTO' + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + post: + tags: + - Resource + operationId: Resource_Create + requestBody: + x-name: newResource + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceDTO' + required: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceDTO' + '400': + description: '' + content: + application/json: + schema: + type: string + '409': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + put: + tags: + - Resource + operationId: Resource_Update + requestBody: + x-name: updatedResource + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceDTO' + required: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceDTO' + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Resource/{id}/detail: + get: + tags: + - Resource + operationId: Resource_GetDetail + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceDTO' + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + /api/Resource/{id}: + get: + tags: + - Resource + operationId: Resource_Show + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '200': + description: '' + content: + application/octet-stream: + schema: + type: string + format: binary + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + delete: + tags: + - Resource + operationId: Resource_Delete + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '202': + description: '' + content: + application/json: + schema: + type: string + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Resource/upload: + post: + tags: + - Resource + operationId: Resource_Upload + requestBody: + content: + multipart/form-data: + schema: + properties: + label: + type: string + nullable: true + type: + type: string + nullable: true + instanceId: + type: string + nullable: true + responses: + '200': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Section: + get: + tags: + - Section + operationId: Section_Get + parameters: + - name: instanceId + in: query + schema: + type: string + nullable: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SectionDTO' + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + post: + tags: + - Section + operationId: Section_Create + requestBody: + x-name: newSection + content: + application/json: + schema: + $ref: '#/components/schemas/SectionDTO' + required: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/SectionDTO' + '400': + description: '' + content: + application/json: + schema: + type: string + '409': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + put: + tags: + - Section + operationId: Section_Update + requestBody: + x-name: updatedSection + content: + application/json: + schema: + $ref: '#/components/schemas/SectionDTO' + required: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/SectionDTO' + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Section/configuration/{id}: + get: + tags: + - Section + operationId: Section_GetFromConfiguration + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SectionDTO' + '400': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + delete: + tags: + - Section + operationId: Section_DeleteAllForConfiguration + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '202': + description: '' + content: + application/json: + schema: + type: string + '400': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Section/{id}/subsections: + get: + tags: + - Section + operationId: Section_GetAllSectionSubSections + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + type: array + items: {} + '400': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Section/{id}: + get: + tags: + - Section + operationId: Section_GetDetail + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/SectionDTO' + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + delete: + tags: + - Section + operationId: Section_Delete + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '202': + description: '' + content: + application/json: + schema: + type: string + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Section/beacons/{id}: + get: + tags: + - Section + operationId: Section_GetAllBeaconsForInstance + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SectionDTO' + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + /api/Section/order: + put: + tags: + - Section + operationId: Section_UpdateOrder + requestBody: + x-name: updatedSectionsOrder + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SectionDTO' + required: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + type: string + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Section/MapDTO: + get: + tags: + - Section + operationId: Section_GetMapDTO + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/MapDTO' + security: + - bearer: [] + /api/Section/SliderDTO: + get: + tags: + - Section + operationId: Section_GetSliderDTO + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/SliderDTO' + security: + - bearer: [] + /api/Section/VideoDTO: + get: + tags: + - Section + operationId: Section_GetVideoDTO + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/VideoDTO' + security: + - bearer: [] + /api/Section/WebDTO: + get: + tags: + - Section + operationId: Section_GetWebDTO + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/WebDTO' + security: + - bearer: [] + /api/Section/MenuDTO: + get: + tags: + - Section + operationId: Section_GetMenuDTO + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/MenuDTO' + security: + - bearer: [] + /api/Section/PlayerMessageDTO: + get: + tags: + - Section + operationId: Section_PlayerMessageDTO + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/PlayerMessageDTO' + security: + - bearer: [] + /api/Section/QuizzDTO: + get: + tags: + - Section + operationId: Section_GetQuizzDTO + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/QuizzDTO' + security: + - bearer: [] + /api/Section/ArticleDTO: + get: + tags: + - Section + operationId: Section_GetArticleDTO + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ArticleDTO' + security: + - bearer: [] + /api/User: + get: + tags: + - User + operationId: User_Get + responses: + '200': + description: '' + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/User' + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + post: + tags: + - User + operationId: User_CreateUser + requestBody: + x-name: newUser + content: + application/json: + schema: + $ref: '#/components/schemas/User' + required: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UserDetailDTO' + '400': + description: '' + content: + application/json: + schema: + type: string + '409': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + put: + tags: + - User + operationId: User_UpdateUser + requestBody: + x-name: updatedUser + content: + application/json: + schema: + $ref: '#/components/schemas/User' + required: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UserDetailDTO' + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/User/{id}: + get: + tags: + - User + operationId: User_GetDetail + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UserDetailDTO' + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + delete: + tags: + - User + operationId: User_DeleteUser + parameters: + - name: id + in: path + required: true + schema: + type: string + nullable: true + x-position: 1 + responses: + '202': + description: '' + content: + application/json: + schema: + type: string + '400': + description: '' + content: + application/json: + schema: + type: string + '404': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + security: + - bearer: [] + /api/Authentication/Token: + post: + tags: + - Authentication + operationId: Authentication_AuthenticateWithForm + requestBody: + content: + multipart/form-data: + schema: + properties: + grant_type: + type: string + nullable: true + username: + type: string + nullable: true + password: + type: string + nullable: true + client_id: + type: string + nullable: true + client_secret: + type: string + nullable: true + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/TokenDTO' + '401': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string + /api/Authentication/Authenticate: + post: + tags: + - Authentication + operationId: Authentication_AuthenticateWithJson + requestBody: + x-name: login + content: + application/json: + schema: + $ref: '#/components/schemas/LoginDTO' + required: true + x-position: 1 + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/TokenDTO' + '401': + description: '' + content: + application/json: + schema: + type: string + '500': + description: '' + content: + application/json: + schema: + type: string +components: + schemas: + ConfigurationDTO: + type: object + additionalProperties: false + properties: + id: + type: string + nullable: true + label: + type: string + nullable: true + title: + type: array + nullable: true + items: + $ref: '#/components/schemas/TranslationDTO' + imageId: + type: string + nullable: true + imageSource: + type: string + nullable: true + primaryColor: + type: string + nullable: true + secondaryColor: + type: string + nullable: true + languages: + type: array + nullable: true + items: + type: string + dateCreation: + type: string + format: date-time + isMobile: + type: boolean + isTablet: + type: boolean + isOffline: + type: boolean + instanceId: + type: string + nullable: true + TranslationDTO: + type: object + additionalProperties: false + properties: + language: + type: string + nullable: true + value: + type: string + nullable: true + ExportConfigurationDTO: + allOf: + - $ref: '#/components/schemas/ConfigurationDTO' + - type: object + additionalProperties: false + properties: + sections: + type: array + nullable: true + items: + $ref: '#/components/schemas/SectionDTO' + resources: + type: array + nullable: true + items: + $ref: '#/components/schemas/ResourceDTO' + SectionDTO: + type: object + additionalProperties: false + properties: + id: + type: string + nullable: true + label: + type: string + nullable: true + title: + type: array + nullable: true + items: + $ref: '#/components/schemas/TranslationDTO' + description: + type: array + nullable: true + items: + $ref: '#/components/schemas/TranslationDTO' + imageId: + type: string + nullable: true + imageSource: + type: string + nullable: true + configurationId: + type: string + nullable: true + isSubSection: + type: boolean + parentId: + type: string + nullable: true + type: + $ref: '#/components/schemas/SectionType' + data: + type: string + nullable: true + dateCreation: + type: string + format: date-time + order: + type: integer + format: int32 + instanceId: + type: string + nullable: true + latitude: + type: string + nullable: true + longitude: + type: string + nullable: true + meterZoneGPS: + type: integer + format: int32 + nullable: true + isBeacon: + type: boolean + beaconId: + type: string + nullable: true + SectionType: + type: integer + description: |- + 0 = Map + 1 = Slider + 2 = Video + 3 = Web + 4 = Menu + 5 = Quizz + 6 = Article + x-enumNames: + - Map + - Slider + - Video + - Web + - Menu + - Quizz + - Article + enum: + - 0 + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + ResourceDTO: + type: object + additionalProperties: false + properties: + id: + type: string + nullable: true + type: + $ref: '#/components/schemas/ResourceType' + label: + type: string + nullable: true + data: + type: string + nullable: true + dateCreation: + type: string + format: date-time + instanceId: + type: string + nullable: true + ResourceType: + type: integer + description: |- + 0 = Image + 1 = Video + 2 = ImageUrl + 3 = VideoUrl + 4 = Audio + x-enumNames: + - Image + - Video + - ImageUrl + - VideoUrl + - Audio + enum: + - 0 + - 1 + - 2 + - 3 + - 4 + DeviceDTO: + type: object + additionalProperties: false + properties: + id: + type: string + nullable: true + identifier: + type: string + nullable: true + name: + type: string + nullable: true + ipAddressWLAN: + type: string + nullable: true + ipAddressETH: + type: string + nullable: true + configurationId: + type: string + nullable: true + configuration: + type: string + nullable: true + connected: + type: boolean + dateCreation: + type: string + format: date-time + dateUpdate: + type: string + format: date-time + instanceId: + type: string + nullable: true + DeviceDetailDTO: + allOf: + - $ref: '#/components/schemas/DeviceDTO' + - type: object + additionalProperties: false + properties: + connectionLevel: + type: string + nullable: true + lastConnectionLevel: + type: string + format: date-time + batteryLevel: + type: string + nullable: true + lastBatteryLevel: + type: string + format: date-time + Instance: + type: object + additionalProperties: false + properties: + id: + type: string + nullable: true + name: + type: string + nullable: true + dateCreation: + type: string + format: date-time + InstanceDTO: + type: object + additionalProperties: false + properties: + id: + type: string + nullable: true + name: + type: string + nullable: true + dateCreation: + type: string + format: date-time + MapDTO: + type: object + additionalProperties: false + properties: + zoom: + type: integer + format: int32 + mapType: + $ref: '#/components/schemas/MapTypeApp' + points: + type: array + nullable: true + items: + $ref: '#/components/schemas/GeoPointDTO' + iconResourceId: + type: string + nullable: true + iconSource: + type: string + nullable: true + MapTypeApp: + type: integer + description: |- + 0 = none + 1 = normal + 2 = satellite + 3 = terrain + 4 = hybrid + x-enumNames: + - none + - normal + - satellite + - terrain + - hybrid + enum: + - 0 + - 1 + - 2 + - 3 + - 4 + GeoPointDTO: + type: object + additionalProperties: false + properties: + id: + type: integer + format: int32 + title: + type: array + nullable: true + items: + $ref: '#/components/schemas/TranslationDTO' + description: + type: array + nullable: true + items: + $ref: '#/components/schemas/TranslationDTO' + images: + type: array + nullable: true + items: + $ref: '#/components/schemas/ImageGeoPoint' + latitude: + type: string + nullable: true + longitude: + type: string + nullable: true + ImageGeoPoint: + type: object + additionalProperties: false + properties: + imageResourceId: + type: string + nullable: true + imageSource: + type: string + nullable: true + SliderDTO: + type: object + additionalProperties: false + properties: + images: + type: array + nullable: true + items: + $ref: '#/components/schemas/ImageDTO' + ImageDTO: + type: object + additionalProperties: false + properties: + title: + type: array + nullable: true + items: + $ref: '#/components/schemas/TranslationDTO' + description: + type: array + nullable: true + items: + $ref: '#/components/schemas/TranslationDTO' + resourceId: + type: string + nullable: true + source: + type: string + nullable: true + order: + type: integer + format: int32 + VideoDTO: + type: object + additionalProperties: false + properties: + source: + type: string + nullable: true + WebDTO: + type: object + additionalProperties: false + properties: + source: + type: string + nullable: true + MenuDTO: + type: object + additionalProperties: false + properties: + sections: + type: array + nullable: true + items: + $ref: '#/components/schemas/SectionDTO' + PlayerMessageDTO: + type: object + additionalProperties: false + properties: + configChanged: + type: boolean + isDeleted: + type: boolean + QuizzDTO: + type: object + additionalProperties: false + properties: + questions: + type: array + nullable: true + items: + $ref: '#/components/schemas/QuestionDTO' + bad_level: + nullable: true + oneOf: + - $ref: '#/components/schemas/LevelDTO' + medium_level: + nullable: true + oneOf: + - $ref: '#/components/schemas/LevelDTO' + good_level: + nullable: true + oneOf: + - $ref: '#/components/schemas/LevelDTO' + great_level: + nullable: true + oneOf: + - $ref: '#/components/schemas/LevelDTO' + QuestionDTO: + type: object + additionalProperties: false + properties: + label: + type: array + nullable: true + items: + $ref: '#/components/schemas/TranslationDTO' + responses: + type: array + nullable: true + items: + $ref: '#/components/schemas/ResponseDTO' + resourceId: + type: string + nullable: true + source: + type: string + nullable: true + order: + type: integer + format: int32 + ResponseDTO: + type: object + additionalProperties: false + properties: + label: + type: array + nullable: true + items: + $ref: '#/components/schemas/TranslationDTO' + isGood: + type: boolean + order: + type: integer + format: int32 + LevelDTO: + type: object + additionalProperties: false + properties: + label: + type: array + nullable: true + items: + $ref: '#/components/schemas/TranslationDTO' + resourceId: + type: string + nullable: true + source: + type: string + nullable: true + ArticleDTO: + type: object + additionalProperties: false + properties: + content: + type: array + nullable: true + items: + $ref: '#/components/schemas/TranslationDTO' + isContentTop: + type: boolean + audioIds: + type: array + nullable: true + items: + $ref: '#/components/schemas/TranslationDTO' + isReadAudioAuto: + type: boolean + images: + type: array + nullable: true + items: + $ref: '#/components/schemas/ImageDTO' + User: + type: object + additionalProperties: false + properties: + id: + type: string + nullable: true + email: + type: string + nullable: true + password: + type: string + nullable: true + firstName: + type: string + nullable: true + lastName: + type: string + nullable: true + token: + type: string + nullable: true + dateCreation: + type: string + format: date-time + instanceId: + type: string + nullable: true + UserDetailDTO: + type: object + additionalProperties: false + properties: + id: + type: string + nullable: true + email: + type: string + nullable: true + firstName: + type: string + nullable: true + lastName: + type: string + nullable: true + TokenDTO: + type: object + additionalProperties: false + properties: + access_token: + type: string + nullable: true + refresh_token: + type: string + nullable: true + scope: + type: string + nullable: true + token_type: + type: string + nullable: true + expires_in: + type: integer + format: int32 + expiration: + type: string + format: date-time + instanceId: + type: string + nullable: true + LoginDTO: + type: object + additionalProperties: false + properties: + email: + type: string + nullable: true + password: + type: string + nullable: true + securitySchemes: + bearer: + type: oauth2 + description: Manager Authentication + flows: + password: + authorizationUrl: /authentication/Token + tokenUrl: /api/authentication/Token + scopes: + Manager-api: Manager WebAPI +security: + - bearer: [] +tags: + - name: Configuration + description: Configuration management + - name: Device + description: Device management + - name: Instance + description: Instance management + - name: Resource + description: Resource management + - name: Section + description: Section management + - name: User + description: User management + - name: Authentication + description: Authentication management diff --git a/manager_api/doc/ConfigurationApi.md b/manager_api/doc/ConfigurationApi.md index 751fdea..8a503df 100644 --- a/manager_api/doc/ConfigurationApi.md +++ b/manager_api/doc/ConfigurationApi.md @@ -105,7 +105,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **configurationExport** -> MultipartFile configurationExport(id) +> MultipartFile configurationExport(id, language) @@ -117,9 +117,10 @@ import 'package:manager_api/api.dart'; final api_instance = ConfigurationApi(); final id = id_example; // String | +final language = language_example; // String | try { - final result = api_instance.configurationExport(id); + final result = api_instance.configurationExport(id, language); print(result); } catch (e) { print('Exception when calling ConfigurationApi->configurationExport: $e\n'); @@ -131,6 +132,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| | + **language** | **String**| | [optional] ### Return type diff --git a/manager_api/lib/api/configuration_api.dart b/manager_api/lib/api/configuration_api.dart index a1208eb..0814f10 100644 --- a/manager_api/lib/api/configuration_api.dart +++ b/manager_api/lib/api/configuration_api.dart @@ -115,7 +115,9 @@ class ConfigurationApi { /// Parameters: /// /// * [String] id (required): - Future configurationExportWithHttpInfo(String id,) async { + /// + /// * [String] language: + Future configurationExportWithHttpInfo(String id, { String? language, }) async { // ignore: prefer_const_declarations final path = r'/api/Configuration/{id}/export' .replaceAll('{id}', id); @@ -127,6 +129,10 @@ class ConfigurationApi { final headerParams = {}; final formParams = {}; + if (language != null) { + queryParams.addAll(_queryParams('', 'language', language)); + } + const contentTypes = []; @@ -144,8 +150,10 @@ class ConfigurationApi { /// Parameters: /// /// * [String] id (required): - Future configurationExport(String id,) async { - final response = await configurationExportWithHttpInfo(id,); + /// + /// * [String] language: + Future configurationExport(String id, { String? language, }) async { + final response = await configurationExportWithHttpInfo(id, language: language, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); }