iobroker.rest-api 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -149,6 +149,9 @@ You cannot send POST request to commands via GUI.
149
149
  -->
150
150
 
151
151
  ## Changelog
152
+ ### 2.0.2 (2024-07-13)
153
+ * (jkuenemund) Changed response for the endpoint get states to the dictionary in swagger
154
+
152
155
  ### 2.0.1 (2024-05-23)
153
156
  * (foxriver76) ported to `@iobroker/webserver`
154
157
  * (theshengfui) Fixed history requests
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "rest-api",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "news": {
6
+ "2.0.2": {
7
+ "en": "Changed response for the endpoint get states to the dictionary in swagger",
8
+ "de": "Geänderte Antwort für den Endpunkt erhalten Zustände zum Wörterbuch in Swagger",
9
+ "ru": "Измененный ответ для конечной точки получить состояния в словарь в swagger",
10
+ "pt": "Resposta alterada para o endpoint obter estados para o dicionário em swagger",
11
+ "nl": "Veranderde respons voor het eindpunt krijgt toestanden naar het woordenboek in swagger",
12
+ "fr": "Réponse modifiée pour le paramètre obtenir des états au dictionnaire dans swagger",
13
+ "it": "Cambiata risposta per il punto finale ottenere stati al dizionario in swagger",
14
+ "es": "Cambio de respuesta para el punto final conseguir estados al diccionario en swagger",
15
+ "pl": "Zmieniona odpowiedź na punkt końcowy uzyskać stany do słownika w swagger",
16
+ "uk": "Змінена відповідь на кінцеву точку, яка отримує штати словника в лебідці",
17
+ "zh-cn": "对端点的更改响应以 swagger 方式将状态变为字典"
18
+ },
6
19
  "2.0.1": {
7
20
  "en": "ported to `@iobroker/webserver`\nFixed history requests\nMinimum required node.js version is 16",
8
21
  "de": "an `@iobroker/webserver `\nGeschichtsanfragen behoben\nMinimum erforderlich node.js Version ist 16",
@@ -78,18 +91,6 @@
78
91
  "es": "Operaciones de lectura y escritura binarias aplicadas",
79
92
  "pl": "Poprawianie binarnego odczytu/pisania operacji",
80
93
  "zh-cn": "执行本文的文字/仪式作业"
81
- },
82
- "1.0.1": {
83
- "en": "Increased the max size of body to 100Mb",
84
- "de": "Erhöht die maximale Körpergröße auf 100Mb",
85
- "ru": "Увеличение максимального размера тела до 100Мб",
86
- "pt": "Aumento do tamanho máximo do corpo para 100Mb",
87
- "nl": "Verhoog de maximale grootte van lichaam tot 100MB",
88
- "fr": "Augmentation de la taille maximale du corps à 100Mb",
89
- "it": "Aumentata la dimensione massima del corpo a 100Mb",
90
- "es": "Aumento del tamaño máximo del cuerpo a 100Mb",
91
- "pl": "Zwiększono maksymalną wielkość ciała do 100 Mb",
92
- "zh-cn": "提高机构规模,使之达到100千兆瓦"
93
94
  }
94
95
  },
95
96
  "title": "REST API",
@@ -2,7 +2,7 @@
2
2
  swagger: "2.0"
3
3
  info:
4
4
  description: "This is a REST server for ioBroker."
5
- version: "2.0.1"
5
+ version: "2.0.2"
6
6
  title: "ioBroker Swagger UI"
7
7
  contact:
8
8
  email: "admin@iobroker.net"
@@ -349,8 +349,8 @@ paths:
349
349
  200:
350
350
  description: "successful operation"
351
351
  schema:
352
- type: array
353
- items:
352
+ type: "object"
353
+ additionalProperties:
354
354
  $ref: "#/definitions/State"
355
355
  400:
356
356
  description: "Invalid filter supplied"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.rest-api",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "RESTful interface for ioBroker with GUI.",
5
5
  "author": {
6
6
  "name": "bluefox",
@@ -22,30 +22,30 @@
22
22
  "url": "https://github.com/ioBroker/ioBroker.rest-api"
23
23
  },
24
24
  "dependencies": {
25
- "@iobroker/adapter-core": "^3.1.4",
26
- "@iobroker/socket-classes": "^1.5.0",
25
+ "@iobroker/adapter-core": "^3.1.6",
26
+ "@iobroker/socket-classes": "^1.5.6",
27
27
  "@iobroker/webserver": "^1.0.3",
28
- "axios": "^1.6.8",
28
+ "axios": "^1.7.2",
29
29
  "body-parser": "^1.20.2",
30
30
  "cors": "^2.8.5",
31
31
  "express": "^4.19.2",
32
32
  "multer": "^1.4.5-lts.1",
33
33
  "swagger-node-runner-fork": "^0.8.0",
34
- "swagger-ui-express": "^5.0.0",
34
+ "swagger-ui-express": "^5.0.1",
35
35
  "yamljs": "^0.3.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@alcalzone/release-script": "^3.7.0",
39
- "@alcalzone/release-script-plugin-iobroker": "^3.7.0",
38
+ "@alcalzone/release-script": "^3.7.3",
39
+ "@alcalzone/release-script-plugin-iobroker": "^3.7.2",
40
40
  "@alcalzone/release-script-plugin-license": "^3.7.0",
41
41
  "@iobroker/adapter-dev": "^1.3.0",
42
42
  "@iobroker/testing": "^4.1.3",
43
43
  "chai": "^4.4.1",
44
44
  "eslint-plugin-eqeqeq-fix": "^1.0.3",
45
45
  "eslint-plugin-only-warn": "^1.1.0",
46
- "eslint-plugin-react": "^7.34.1",
46
+ "eslint-plugin-react": "^7.34.3",
47
47
  "gulp": "^4.0.2",
48
- "mocha": "^10.4.0"
48
+ "mocha": "^10.6.0"
49
49
  },
50
50
  "bugs": {
51
51
  "url": "https://github.com/ioBroker/ioBroker.rest-api/issues"