mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
Swagger: updated model (3)
This commit is contained in:
parent
01bed02000
commit
dbfd38f314
@ -96,5 +96,8 @@ The language option `-l` allows to generate code or documentation in a lot of la
|
|||||||
- python: Python client
|
- python: Python client
|
||||||
- angular2: Typescript for Angular2 client
|
- angular2: Typescript for Angular2 client
|
||||||
|
|
||||||
|
<h3>Links</h3>
|
||||||
|
|
||||||
|
- [Github repository](https://github.com/swagger-api/swagger-codegen)
|
||||||
|
- [Server side code generation](https://github.com/swagger-api/swagger-codegen/wiki/Server-stub-generator-HOWTO) although not useful in this case
|
||||||
|
|
||||||
|
@ -231,18 +231,10 @@ paths:
|
|||||||
parameters:
|
parameters:
|
||||||
- name: body
|
- name: body
|
||||||
in: body
|
in: body
|
||||||
description: Load this preset
|
description: Load preset settings to the device set
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
required:
|
$ref: "#/definitions/PresetTransfer"
|
||||||
- deviceSetIndex
|
|
||||||
- preset
|
|
||||||
properties:
|
|
||||||
deviceSetIndex:
|
|
||||||
description: "Index of the device set"
|
|
||||||
type: integer
|
|
||||||
preset:
|
|
||||||
$ref: "#/definitions/PresetIdentifier"
|
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: On success return preset identification
|
description: On success return preset identification
|
||||||
@ -262,18 +254,10 @@ paths:
|
|||||||
parameters:
|
parameters:
|
||||||
- name: body
|
- name: body
|
||||||
in: body
|
in: body
|
||||||
description: save device set settings on this preset
|
description: save device set settings to the preset
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
required:
|
$ref: "#/definitions/PresetTransfer"
|
||||||
- deviceSetIndex
|
|
||||||
- preset
|
|
||||||
properties:
|
|
||||||
deviceSetIndex:
|
|
||||||
description: "Index of the device set"
|
|
||||||
type: integer
|
|
||||||
preset:
|
|
||||||
$ref: "#/definitions/PresetIdentifier"
|
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: On success return preset identification
|
description: On success return preset identification
|
||||||
@ -293,18 +277,10 @@ paths:
|
|||||||
parameters:
|
parameters:
|
||||||
- name: body
|
- name: body
|
||||||
in: body
|
in: body
|
||||||
description: save current settings on a new preset
|
description: save device set settings on a new preset
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
required:
|
$ref: "#/definitions/PresetTransfer"
|
||||||
- deviceSetIndex
|
|
||||||
- preset
|
|
||||||
properties:
|
|
||||||
deviceSetIndex:
|
|
||||||
description: "Index of the device set"
|
|
||||||
type: integer
|
|
||||||
preset:
|
|
||||||
$ref: "#/definitions/PresetIdentifier"
|
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: On success return preset identification
|
description: On success return preset identification
|
||||||
@ -354,6 +330,12 @@ paths:
|
|||||||
post:
|
post:
|
||||||
description: Add (append) a new device set
|
description: Add (append) a new device set
|
||||||
operationId: instanceDeviceSetsPost
|
operationId: instanceDeviceSetsPost
|
||||||
|
parameters:
|
||||||
|
- name: tx
|
||||||
|
in: query
|
||||||
|
description: Set to true for a Tx device set
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: On success return new device set
|
description: On success return new device set
|
||||||
@ -692,3 +674,14 @@ definitions:
|
|||||||
name:
|
name:
|
||||||
description: "Descriptive name of the preset"
|
description: "Descriptive name of the preset"
|
||||||
type: string
|
type: string
|
||||||
|
PresetTransfer:
|
||||||
|
description: "Preset transfer to or from a device set"
|
||||||
|
required:
|
||||||
|
- deviceSetIndex
|
||||||
|
- preset
|
||||||
|
properties:
|
||||||
|
deviceSetIndex:
|
||||||
|
description: "Index of the device set"
|
||||||
|
type: integer
|
||||||
|
preset:
|
||||||
|
$ref: "#/definitions/PresetIdentifier"
|
||||||
|
Loading…
Reference in New Issue
Block a user