Skip to content

Commit e4d6001

Browse files
committed
Swagger - Add links to master docs to the members common to all device types.
1 parent 2ed5e46 commit e4d6001

1 file changed

Lines changed: 57 additions & 47 deletions

File tree

Swagger/AlpacaDeviceAPI_v1.yaml

Lines changed: 57 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,17 @@ paths:
121121
122122
This capability will be of primary value to:
123123
* 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
125125
126126
127127
The list of Action commands supported by a driver can be discovered through the SupportedActions property.
128128
129129
130130
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+
131135
parameters:
132136
- $ref: '#/components/parameters/device_type'
133137
- $ref: '#/components/parameters/device_number'
@@ -148,25 +152,18 @@ paths:
148152
- $ref: '#/components/schemas/AlpacaRequest'
149153
- properties:
150154
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.
154156
type: string
155157
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
159159
type: string
160160
required:
161161
- Action
162162
- Parameters
163163
'/{device_type}/{device_number}/commandblind':
164164
put:
165165
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."
170167
parameters:
171168
- $ref: '#/components/parameters/device_type'
172169
- $ref: '#/components/parameters/device_number'
@@ -183,13 +180,8 @@ paths:
183180
$ref: '#/components/requestBodies/put_devicetype_Devicenumber_commandrequest'
184181
'/{device_type}/{device_number}/commandbool':
185182
put:
186-
summary: >-
187-
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."
193185
parameters:
194186
- $ref: '#/components/parameters/device_type'
195187
- $ref: '#/components/parameters/device_number'
@@ -206,13 +198,8 @@ paths:
206198
$ref: '#/components/requestBodies/put_devicetype_Devicenumber_commandrequest'
207199
'/{device_type}/{device_number}/commandstring':
208200
put:
209-
summary: >-
210-
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."
216203
parameters:
217204
- $ref: '#/components/parameters/device_type'
218205
- $ref: '#/components/parameters/device_number'
@@ -230,7 +217,7 @@ paths:
230217
'/{device_type}/{device_number}/connect':
231218
put:
232219
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."
234221
parameters:
235222
- $ref: '#/components/parameters/device_type'
236223
- $ref: '#/components/parameters/device_number'
@@ -248,7 +235,7 @@ paths:
248235
'/{device_type}/{device_number}/connected':
249236
get:
250237
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."
252239
parameters:
253240
- $ref: '#/components/parameters/device_type'
254241
- $ref: '#/components/parameters/device_number'
@@ -265,10 +252,7 @@ paths:
265252
$ref: '#/components/responses/500'
266253
put:
267254
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."
272256
tags:
273257
- ASCOM Methods Common To All Devices
274258
parameters:
@@ -298,7 +282,7 @@ paths:
298282
'/{device_type}/{device_number}/connecting':
299283
get:
300284
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."
302286
parameters:
303287
- $ref: '#/components/parameters/device_type'
304288
- $ref: '#/components/parameters/device_number'
@@ -316,7 +300,7 @@ paths:
316300
'/{device_type}/{device_number}/description':
317301
get:
318302
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."
320304
parameters:
321305
- $ref: '#/components/parameters/device_type'
322306
- $ref: '#/components/parameters/device_number'
@@ -335,11 +319,40 @@ paths:
335319
get:
336320
summary: Returns the device's operational state in a single call.
337321
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:
323+
324+
325+
[Camera DeviceState](https://ascom-standards.org/newdocs/camera.html#Camera.DeviceState)
326+
327+
328+
[CoverCalibrator DeviceState](https://ascom-standards.org/newdocs/covercalibrator.html#CoverCalibrator.DeviceState)
329+
330+
331+
[Dome DeviceState](https://ascom-standards.org/newdocs/dome.html#Dome.DeviceState)
332+
333+
334+
[FilterWheel DeviceState](https://ascom-standards.org/newdocs/filterwheel.html#FilterWheel.DeviceState)
335+
336+
337+
[Focuser DeviceState](https://ascom-standards.org/newdocs/focuser.html#Focuser.DeviceState)
338+
339+
340+
[ObservingConditions DeviceState](https://ascom-standards.org/newdocs/observingconditions.html#ObservingConditions.DeviceState)
341+
342+
343+
[Rotator DeviceState](https://ascom-standards.org/newdocs/rotator.html#Rotator.DeviceState)
344+
345+
346+
[SafetyMonitor DeviceState](https://ascom-standards.org/newdocs/safetymonitor.html#SafetyMonitor.DeviceState)
347+
348+
349+
[Switch DeviceState](https://ascom-standards.org/newdocs/switch.html#Switch.DeviceState)
350+
351+
352+
[Telescope DeviceState](https://ascom-standards.org/newdocs/telescope.html#Telescope.DeviceState)
353+
354+
355+
See here for more information: [DeviceState FAQ](https://ascom-standards.org/newdocs/readall-faq.html)"
343356
parameters:
344357
- $ref: '#/components/parameters/device_type'
345358
- $ref: '#/components/parameters/device_number'
@@ -357,7 +370,7 @@ paths:
357370
'/{device_type}/{device_number}/disconnect':
358371
put:
359372
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."
361374
parameters:
362375
- $ref: '#/components/parameters/device_type'
363376
- $ref: '#/components/parameters/device_number'
@@ -375,7 +388,7 @@ paths:
375388
'/{device_type}/{device_number}/driverinfo':
376389
get:
377390
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."
379392
parameters:
380393
- $ref: '#/components/parameters/device_type'
381394
- $ref: '#/components/parameters/device_number'
@@ -393,7 +406,7 @@ paths:
393406
'/{device_type}/{device_number}/driverversion':
394407
get:
395408
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."
397410
parameters:
398411
- $ref: '#/components/parameters/device_type'
399412
- $ref: '#/components/parameters/device_number'
@@ -411,10 +424,7 @@ paths:
411424
'/{device_type}/{device_number}/interfaceversion':
412425
get:
413426
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."
418428
parameters:
419429
- $ref: '#/components/parameters/device_type'
420430
- $ref: '#/components/parameters/device_number'
@@ -432,7 +442,7 @@ paths:
432442
'/{device_type}/{device_number}/name':
433443
get:
434444
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."
436446
parameters:
437447
- $ref: '#/components/parameters/device_type'
438448
- $ref: '#/components/parameters/device_number'
@@ -450,7 +460,7 @@ paths:
450460
'/{device_type}/{device_number}/supportedactions':
451461
get:
452462
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."
454464
parameters:
455465
- $ref: '#/components/parameters/device_type'
456466
- $ref: '#/components/parameters/device_number'

0 commit comments

Comments
 (0)