mirror of
https://github.com/gosticks/octoprint-open-api.git
synced 2025-10-16 11:45:38 +00:00
WIP: add printer api
This commit is contained in:
parent
b8af6d175a
commit
2529bd1229
@ -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
|
||||
|
||||
30
openapi/paths/printerprofiles/post.yaml
Normal file
30
openapi/paths/printerprofiles/post.yaml
Normal 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user