mirror of
https://github.com/gosticks/octoprint-open-api.git
synced 2025-10-16 11:45:38 +00:00
WIP: add get single profile
This commit is contained in:
parent
17c772effc
commit
b8af6d175a
2
TODO.md
2
TODO.md
@ -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
|
||||
|
||||
@ -70,4 +70,7 @@ paths:
|
||||
/printerprofiles:
|
||||
get:
|
||||
$ref: paths/printerprofiles/get.yaml
|
||||
/printerprofiles/{identifier}:
|
||||
get:
|
||||
$ref: paths/printerprofiles/{identifier}-get.yaml
|
||||
|
||||
|
||||
20
openapi/paths/printerprofiles/{identifier}-get.yaml
Normal file
20
openapi/paths/printerprofiles/{identifier}-get.yaml
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user