Skip to content

Commit 100c79b

Browse files
authored
Update swagger 1 March 2022 (#75)
* Update swagger * Bump version to 4.1
1 parent 3e7ae84 commit 100c79b

File tree

5 files changed

+30
-6
lines changed

5 files changed

+30
-6
lines changed

config/languages/go_v2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"gitRepoId": "iot-client-go",
44
"isGoSubmodule": false,
55
"packageName": "iot",
6-
"packageVersion": "1.4.0",
6+
"packageVersion": "1.4.1",
77
"withGoCodegenComment": true
88
}

config/languages/html2_v2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"packageName": "iot",
3-
"packageVersion": "1.4.0",
3+
"packageVersion": "1.4.1",
44
"usePromises": true
55
}

config/languages/javascript_v2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"projectName": "@arduino/arduino-iot-client",
33
"moduleName": "ArduinoIotClient",
4-
"projectVersion": "1.4.0",
5-
"packageVersion": "1.4.0",
4+
"projectVersion": "1.4.1",
5+
"packageVersion": "1.4.1",
66
"usePromises": true,
77
"licenseName":"GPLv3",
88
"generateSourceCodeOnly": true

config/languages/python_v2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packageName": "arduino_iot_rest",
33
"projectName": "arduino-iot-client",
4-
"packageVersion": "1.4.0",
4+
"packageVersion": "1.4.1",
55
"generateSourceCodeOnly": true
66
}

spec/v2/swagger.yaml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,10 +833,19 @@ components:
833833
description: Delete date of the thing
834834
format: date-time
835835
type: string
836+
device_fqbn:
837+
description: The fqbn of the attached device, if any
838+
type: string
836839
device_id:
837-
description: The arn of the device
840+
description: The id of the device
838841
format: uuid
839842
type: string
843+
device_name:
844+
description: The name of the attached device, if any
845+
type: string
846+
device_type:
847+
description: The type of the attached device, if any
848+
type: string
840849
href:
841850
description: The api reference of this thing
842851
type: string
@@ -913,6 +922,10 @@ components:
913922
description: Current UTC DST offset in seconds.
914923
format: int64
915924
type: integer
925+
until:
926+
description: Date until the offset is valid.
927+
format: date-time
928+
type: string
916929
required:
917930
- name
918931
- offset
@@ -1493,6 +1506,10 @@ components:
14931506
type: object
14941507
propertiesValues:
14951508
properties:
1509+
input:
1510+
default: false
1511+
description: If true, send property values to device's input topic.
1512+
type: boolean
14961513
properties:
14971514
items:
14981515
$ref: '#/components/schemas/propertiesValue'
@@ -2828,6 +2845,11 @@ paths:
28282845
multipart/form-data:
28292846
schema:
28302847
properties:
2848+
async:
2849+
default: true
2850+
description: If false, wait for the full OTA process, until it gets a result from the device
2851+
type: boolean
2852+
x-formData-name: async
28312853
expire_in_mins:
28322854
default: 10
28332855
description: Binary expire time in minutes, default 10 mins
@@ -2844,6 +2866,8 @@ paths:
28442866
- ota_file
28452867
type: object
28462868
responses:
2869+
"200":
2870+
description: OK
28472871
"202":
28482872
description: Accepted
28492873
"400":

0 commit comments

Comments
 (0)