WIP: printer profiles

This commit is contained in:
Wlad 2020-10-30 22:56:27 +01:00
parent a6750856a2
commit 17c772effc
3 changed files with 24 additions and 3 deletions

View File

@ -55,14 +55,14 @@
- [x] Model: SD State
- [x] Model: Arbitrary Command Request
- [ ] Printer profile operations [link](https://docs.octoprint.org/en/master/api/printerprofiles.html)
- [ ] Retrieve all printer profiles
- [x] Retrieve all printer profiles
- [ ] Retrieve a single printer profile
- [ ] Add a new printer profile
- [ ] Update an existing printer profile
- [ ] Remove an existing printer profile
- [ ] Model: Profile list
- [ ] Model: Add or update requiest
- [ ] Model: Profile
- [ ] Model: Add or update request
- [x] Model: Profile
- [ ] Settings [link](https://docs.octoprint.org/en/master/api/settings.html)
- [ ] Retrieve current settings
- [ ] Save settings

View File

@ -67,3 +67,7 @@ paths:
/printer/command:
post:
$ref: paths/printer/command/post.yaml
/printerprofiles:
get:
$ref: paths/printerprofiles/get.yaml

View File

@ -0,0 +1,17 @@
summary: Retrieve all printer profiles
operationId: getPrinterProfiles
description: >-
Retrieves a list of all configured printer profiles.
responses:
"200":
description: >-
List of available printer profiles
content:
application/json:
schema:
type: object
properties:
profiles:
type: array
items:
$ref: ../../components/schemas/printer/Profile.yaml