WIP: add get single profile

This commit is contained in:
Wlad 2020-10-30 23:01:47 +01:00
parent 17c772effc
commit b8af6d175a
3 changed files with 24 additions and 1 deletions

View File

@ -56,7 +56,7 @@
- [x] Model: Arbitrary Command Request
- [ ] Printer profile operations [link](https://docs.octoprint.org/en/master/api/printerprofiles.html)
- [x] Retrieve all printer profiles
- [ ] Retrieve a single printer profile
- [x] Retrieve a single printer profile
- [ ] Add a new printer profile
- [ ] Update an existing printer profile
- [ ] Remove an existing printer profile

View File

@ -70,4 +70,7 @@ paths:
/printerprofiles:
get:
$ref: paths/printerprofiles/get.yaml
/printerprofiles/{identifier}:
get:
$ref: paths/printerprofiles/{identifier}-get.yaml

View File

@ -0,0 +1,20 @@
summary: Retrieve a single printer profile
operationId: getPrinterProfile
description: >-
Retrieves an existing single printer profile.
parameters:
- in: path
name: identifier
description: >-
identifier of a given printer profile
responses:
"200":
description: >-
List of available printer profiles
content:
application/json:
schema:
$ref: ../../components/schemas/printer/Profile.yaml
"404":
description: >-
The profile does not exist