fix parameter api errors

This commit is contained in:
Wlad 2020-11-20 23:00:52 +01:00
parent b0d103f02a
commit 7f2a831b2e
5 changed files with 20 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
# Dir for bundles # Dir for bundles
dist dist
node_modules node_modules
build

View File

@ -1,5 +1,7 @@
in: path in: path
name: identifier name: identifier
schema:
type: string
description: >- description: >-
identifier of a given printer profile identifier of a given printer profile
required: true required: true

View File

@ -3,3 +3,5 @@ name: source
description: >- description: >-
The source for which to list commands, currently either core or custom The source for which to list commands, currently either core or custom
required: true required: true
schema:
type: string

View File

@ -1,4 +1,11 @@
openapi: 3.0.2 openapi: 3.0.2
servers:
- url: "http://{url}:{port}/api"
variables:
url:
default: localhost
port:
default: "80"
info: info:
license: license:
name: Creative Commons name: Creative Commons
@ -22,8 +29,7 @@ info:
- Auth header definitions are still missing - Auth header definitions are still missing
version: "0.8" version: "0.8"
servers:
- url: "/api"
tags: tags:
- name: General - name: General
description: General operations description: General operations

View File

@ -5,7 +5,13 @@ description: >-
tags: tags:
- System Commands - System Commands
parameters: parameters:
- $ref: ../../../components/parameters/systemCmdSource.yaml - in: path
name: source
description: >-
The source for which to list commands, currently either core or custom
required: true
schema:
type: string
- in: path - in: path
name: action name: action
required: true required: true