WIP: add printer api

This commit is contained in:
Wlad 2020-10-30 23:09:08 +01:00
parent b8af6d175a
commit 2529bd1229
2 changed files with 32 additions and 0 deletions

View File

@ -70,6 +70,8 @@ paths:
/printerprofiles:
get:
$ref: paths/printerprofiles/get.yaml
post:
$ref: paths/printerprofiles/post.yaml
/printerprofiles/{identifier}:
get:
$ref: paths/printerprofiles/{identifier}-get.yaml

View File

@ -0,0 +1,30 @@
summary: Add a new printer profile
operationId: addNewPrinterProfile
description: >-
Adds a new printer profile based on either the current default profile or the profile identified in basedOn.
The provided profile data will be merged with the profile data from the base profile.
requestBody:
content:
application/json:
schema:
type: object
required:
- profile
properties:
basedOn:
type: string
profile:
$ref: ../../components/schemas/printer/Profile.yaml
required: false
responses:
"200":
description: >-
Profile saved.
content:
application/json:
schema:
type: object
properties:
profile:
$ref: ../../components/schemas/printer/Profile.yaml