You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Swagger/AlpacaDeviceAPI_v1.yaml
+57-47Lines changed: 57 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -121,13 +121,17 @@ paths:
121
121
122
122
This capability will be of primary value to:
123
123
* bespoke software and hardware configurations where a single entity controls both the consuming application software and the hardware / driver environment
124
-
* a group of application and device authors to quickly formulate and try out new interface capabilities without requiring an immediate change to the ASCOM device interface, which will take a lot longer than just agreeing a name, input parameters and a standard response for an Action command
124
+
* a group of application and device authors who want to quickly formulate and try out new interface capabilities without requiring an immediate change to the ASCOM device interface, which will take a lot longer than just agreeing a name, input parameters and a standard response for an Action command
125
125
126
126
127
127
The list of Action commands supported by a driver can be discovered through the SupportedActions property.
128
128
129
129
130
130
This method should return an error message and NotImplementedException error number (0x400) if the driver just implements the standard ASCOM device methods and has no bespoke, unique, functionality.
131
+
132
+
133
+
A full description of this member's behaviour is provided here: [Action](https://ascom-standards.org/newdocs/camera.html#Camera.Action)". Please note that this member functions identically in all device interfaces.
134
+
131
135
parameters:
132
136
- $ref: '#/components/parameters/device_type'
133
137
- $ref: '#/components/parameters/device_number'
@@ -148,25 +152,18 @@ paths:
148
152
- $ref: '#/components/schemas/AlpacaRequest'
149
153
- properties:
150
154
Action:
151
-
description: >-
152
-
A well known name that represents the action to be carried
153
-
out.
155
+
description: A well known name that represents the action to be carried out.
154
156
type: string
155
157
Parameters:
156
-
description: >-
157
-
List of required parameters or an Empty String if none are
158
-
required
158
+
description: List of required parameters or an Empty String if none are required
159
159
type: string
160
160
required:
161
161
- Action
162
162
- Parameters
163
163
'/{device_type}/{device_number}/commandblind':
164
164
put:
165
165
summary: Transmits an arbitrary string to the device
166
-
description: >-
167
-
Transmits an arbitrary string to the device and does not wait for a
168
-
response. Optionally, protocol framing characters may be added to the
169
-
string before transmission.
166
+
description: "A full description of this member's behaviour is provided here: [CommandBlind](https://ascom-standards.org/newdocs/camera.html#Camera.CommandBlind). Please note that this member functions identically in all device interfaces."
Transmits an arbitrary string to the device and returns a boolean value
188
-
from the device.
189
-
description: >-
190
-
Transmits an arbitrary string to the device and waits for a boolean
191
-
response. Optionally, protocol framing characters may be added to the
192
-
string before transmission.
183
+
summary: Transmits an arbitrary string to the device and returns a boolean value from the device.
184
+
description: "A full description of this member's behaviour is provided here: [CommandBool](https://ascom-standards.org/newdocs/camera.html#Camera.CommandBool). Please note that this member functions identically in all device interfaces."
Transmits an arbitrary string to the device and returns a string value
211
-
from the device.
212
-
description: >-
213
-
Transmits an arbitrary string to the device and waits for a string
214
-
response. Optionally, protocol framing characters may be added to the
215
-
string before transmission.
201
+
summary: Transmits an arbitrary string to the device and returns a string value from the device.
202
+
description: "A full description of this member's behaviour is provided here: [CommandString](https://ascom-standards.org/newdocs/camera.html#Camera.CommandString). Please note that this member functions identically in all device interfaces."
216
203
parameters:
217
204
- $ref: '#/components/parameters/device_type'
218
205
- $ref: '#/components/parameters/device_number'
@@ -230,7 +217,7 @@ paths:
230
217
'/{device_type}/{device_number}/connect':
231
218
put:
232
219
summary: Starts an asynchronous connect to the device.
233
-
description: '`Platform 7 onward.` The Connecting property will be true until device initialisation is complete.'
220
+
description: "`Platform 7 onward.` A full description of this member's behaviour is provided here: [Connect](https://ascom-standards.org/newdocs/camera.html#Camera.Connect). Please note that this member functions identically in all device interfaces."
234
221
parameters:
235
222
- $ref: '#/components/parameters/device_type'
236
223
- $ref: '#/components/parameters/device_number'
@@ -248,7 +235,7 @@ paths:
248
235
'/{device_type}/{device_number}/connected':
249
236
get:
250
237
summary: Retrieves the connected state of the device
251
-
description: Retrieves the connected state of the device
238
+
description: "A full description of this member's behaviour is provided here: [Connected](https://ascom-standards.org/newdocs/camera.html#Camera.Connected). Please note that this member functions identically in all device interfaces."
252
239
parameters:
253
240
- $ref: '#/components/parameters/device_type'
254
241
- $ref: '#/components/parameters/device_number'
@@ -265,10 +252,7 @@ paths:
265
252
$ref: '#/components/responses/500'
266
253
put:
267
254
summary: Sets the connected state of the device
268
-
description: >-
269
-
**Deprecated in favour of the newer non-blocking [`connect`](#/ASCOM%20Methods%20Common%20To%20All%20Devices/put__device_type___device_number__connect) and [`disconnect`](#/ASCOM%20Methods%20Common%20To%20All%20Devices/put__device_type___device_number__disconnect) methods, with the new [`connecting`](#/ASCOM%20Methods%20Common%20To%20All%20Devices/get__device_type___device_number__connecting) property serving as the completion property.**
270
-
271
-
Sets the connected state of the device
255
+
description: "A full description of this member's behaviour is provided here: [Connected](https://ascom-standards.org/newdocs/camera.html#Camera.Connected). Please note that this member functions identically in all device interfaces."
272
256
tags:
273
257
- ASCOM Methods Common To All Devices
274
258
parameters:
@@ -298,7 +282,7 @@ paths:
298
282
'/{device_type}/{device_number}/connecting':
299
283
get:
300
284
summary: Completion variable for the asynchronous Connect() and Disconnect() methods.
301
-
description: '`Platform 7 onward.` Returns true while the device is connecting or disconnecting.'
285
+
description: "`Platform 7 onward.` A full description of this member's behaviour is provided here: [Connecting](https://ascom-standards.org/newdocs/camera.html#Camera.Connecting). Please note that this member functions identically in all device interfaces."
302
286
parameters:
303
287
- $ref: '#/components/parameters/device_type'
304
288
- $ref: '#/components/parameters/device_number'
@@ -316,7 +300,7 @@ paths:
316
300
'/{device_type}/{device_number}/description':
317
301
get:
318
302
summary: Device description
319
-
description: The description of the device
303
+
description: "A full description of this member's behaviour is provided here: [Description](https://ascom-standards.org/newdocs/camera.html#Camera.Description). Please note that this member functions identically in all device interfaces."
320
304
parameters:
321
305
- $ref: '#/components/parameters/device_type'
322
306
- $ref: '#/components/parameters/device_number'
@@ -335,11 +319,40 @@ paths:
335
319
get:
336
320
summary: Returns the device's operational state in a single call.
337
321
description: >-
338
-
`Platform 7 onward.` Devices must return all operational values that are definitively known but can omit entries where values
339
-
are unknown. Devices must not throw exceptions / return errors when values are not known. An empty list must
340
-
be returned if no values are known.
341
-
Client Applications must expect that, from time to time, some operational state values may not be present
342
-
in the device response and must be prepared to handle “missing” values.
322
+
"`Platform 7 onward.` Please note that this member has the same signature in all device interfaces but the returned properties vary by device type:
See here for more information: [DeviceState FAQ](https://ascom-standards.org/newdocs/readall-faq.html)"
343
356
parameters:
344
357
- $ref: '#/components/parameters/device_type'
345
358
- $ref: '#/components/parameters/device_number'
@@ -357,7 +370,7 @@ paths:
357
370
'/{device_type}/{device_number}/disconnect':
358
371
put:
359
372
summary: Starts an asynchronous disconnect from the device.
360
-
description: '`Platform 7 onward.` The Connecting property will be true until device disconneciton is complete.'
373
+
description: "`Platform 7 onward.` A full description of this member's behaviour is provided here: [Disconnect](https://ascom-standards.org/newdocs/camera.html#Camera.Disconnect). Please note that this member functions identically in all device interfaces."
361
374
parameters:
362
375
- $ref: '#/components/parameters/device_type'
363
376
- $ref: '#/components/parameters/device_number'
@@ -375,7 +388,7 @@ paths:
375
388
'/{device_type}/{device_number}/driverinfo':
376
389
get:
377
390
summary: Device driver description
378
-
description: The description of the driver
391
+
description: "A full description of this member's behaviour is provided here: [DriverInfo](https://ascom-standards.org/newdocs/camera.html#Camera.DriverInfo). Please note that this member functions identically in all device interfaces."
379
392
parameters:
380
393
- $ref: '#/components/parameters/device_type'
381
394
- $ref: '#/components/parameters/device_number'
@@ -393,7 +406,7 @@ paths:
393
406
'/{device_type}/{device_number}/driverversion':
394
407
get:
395
408
summary: Driver Version
396
-
description: A string containing only the major and minor version of the driver.
409
+
description: "A full description of this member's behaviour is provided here: [DriverVersion](https://ascom-standards.org/newdocs/camera.html#Camera.DriverVersion). Please note that this member functions identically in all device interfaces."
summary: The ASCOM Device interface version number that this device supports.
414
-
description: >-
415
-
This method returns the version of the ASCOM device interface contract to which this device complies. Only one interface version is current at a moment in time and all
416
-
new devices should be built to the latest interface version. Applications can choose which device interface versions they support and it is in their interest to support
417
-
previous versions as well as the current version to ensure thay can use the largest number of devices.
427
+
description: "A full description of this member's behaviour is provided here: [InterfaceVersion](https://ascom-standards.org/newdocs/camera.html#Camera.InterfaceVersion). Please note that this member functions identically in all device interfaces."
418
428
parameters:
419
429
- $ref: '#/components/parameters/device_type'
420
430
- $ref: '#/components/parameters/device_number'
@@ -432,7 +442,7 @@ paths:
432
442
'/{device_type}/{device_number}/name':
433
443
get:
434
444
summary: Device name
435
-
description: The name of the device
445
+
description: "A full description of this member's behaviour is provided here: [Name](https://ascom-standards.org/newdocs/camera.html#Camera.Name). Please note that this member functions identically in all device interfaces."
summary: Returns the list of action names supported by this driver.
453
-
description: Returns the list of action names supported by this driver.
463
+
description: "A full description of this member's behaviour is provided here: [SupportedActions](https://ascom-standards.org/newdocs/camera.html#Camera.SupportedActions). Please note that this member functions identically in all device interfaces."
0 commit comments