update docs structure

This commit is contained in:
Wlad 2020-11-04 00:02:26 +01:00
parent a5c5c9b7cb
commit a8e3baa2a6
53 changed files with 186 additions and 46 deletions

View File

@ -8,3 +8,4 @@ properties:
description: >- description: >-
Remaining free space Remaining free space
type: string type: string
example: "25.4G"

View File

@ -11,29 +11,60 @@ servers:
tags: tags:
- name: General - name: General
description: General operations description: General operations
- name: user - name: User
description: User operations description: User operations
- name: Groups - name: Groups
description: User group management description: User group management
- name: permissions - name: Permissions
- name: system description: >-
Retrieve system permission settings
- name: System
description: OctoPrint system operations description: OctoPrint system operations
- name: Settings
description: System settings
- name: System Commands
description: Manage and execute system commands
- name: Languages
description: Printer language configuration
- name: Printer
description: Printer operations
- name: Job
description: Control and monitor ongoing printer jobs
- name: file - name: file
description: File operations description: File operations
- name: printer
description: Printer specific operations
- name: Session & Login
description: Handle authentication related actions
- name: access
description: Access control related operations and management
x-tagGroups: x-tagGroups:
- name: General - name: General
tags: tags:
- General - General
- name: Printer
tags:
- State
- Jobs
- Tool
- Bed
- Printhead
- Chamber
- SD Card
- Profiles
- name: Files
tags:
- Files
- name: User Management & Access - name: User Management & Access
tags: tags:
- user - User
- Groups - Groups
- Permissions
- name: System
tags:
- System
- Settings
- System Commands
- Languages
paths: paths:
/login: /login:
$ref: paths/login.yaml $ref: paths/login.yaml
@ -46,6 +77,10 @@ paths:
/connection: /connection:
$ref: paths/connection.yaml $ref: paths/connection.yaml
# File endpoints
/files:
get:
$ref: paths/files/get.yaml
/files/{location}: /files/{location}:
get: get:
$ref: paths/files/{location}/get.yaml $ref: paths/files/{location}/get.yaml
@ -56,9 +91,8 @@ paths:
$ref: ./paths/files/{location}/{path}-get.yaml $ref: ./paths/files/{location}/{path}-get.yaml
delete: delete:
$ref: ./paths/files/{location}/{path}-delete.yaml $ref: ./paths/files/{location}/{path}-delete.yaml
/files:
get: # Print job endpoints
$ref: paths/files/get.yaml
/job: /job:
get: get:
$ref: paths/job/get.yaml $ref: paths/job/get.yaml
@ -93,6 +127,8 @@ paths:
/printer/command: /printer/command:
post: post:
$ref: paths/printer/command/post.yaml $ref: paths/printer/command/post.yaml
# Printer profile management
/printerprofiles: /printerprofiles:
get: get:
$ref: paths/printerprofiles/get.yaml $ref: paths/printerprofiles/get.yaml
@ -105,6 +141,8 @@ paths:
$ref: paths/printerprofiles/{identifier}-post.yaml $ref: paths/printerprofiles/{identifier}-post.yaml
delete: delete:
$ref: paths/printerprofiles/{identifier}-delete.yaml $ref: paths/printerprofiles/{identifier}-delete.yaml
# OctoPrint system commands
/system/commands: /system/commands:
get: get:
$ref: paths/system/commands/get.yaml $ref: paths/system/commands/get.yaml
@ -114,6 +152,20 @@ paths:
/system/commands/{source}/{action}: /system/commands/{source}/{action}:
post: post:
$ref: paths/system/commands/{source}-{action}-post.yaml $ref: paths/system/commands/{source}-{action}-post.yaml
/settings:
get:
$ref: paths/settings/get.yaml
post:
$ref: paths/settings/post.yaml
/settings/templates:
get:
$ref: paths/settings/templates-get.yaml
/settings/apikey:
get:
$ref: paths/settings/apikey-post.yaml
# Access Controls
/access/permissions: /access/permissions:
get: get:
$ref: paths/access/permissions-get.yaml $ref: paths/access/permissions-get.yaml
@ -154,6 +206,8 @@ paths:
$ref: paths/access/users/{username}-apikey-post.yaml $ref: paths/access/users/{username}-apikey-post.yaml
delete: delete:
$ref: paths/access/users/{username}-apikey-delete.yaml $ref: paths/access/users/{username}-apikey-delete.yaml
# Language endpoints
/languages: /languages:
get: get:
$ref: paths/languages/get.yaml $ref: paths/languages/get.yaml

View File

@ -2,6 +2,8 @@ summary: List all permissions
operationId: getAllPermissions operationId: getAllPermissions
description: >- description: >-
Retrieves all permissions available in the system. Retrieves all permissions available in the system.
tags:
- Permissions
responses: responses:
"200": "200":
description: >- description: >-

View File

@ -1,7 +1,7 @@
summary: Retrieve a list of users summary: Retrieve a list of users
operationId: getAllUsers operationId: getAllUsers
tags: tags:
- user - User
description: >- description: >-
Retrieves a list of all registered users in OctoPrint. Retrieves a list of all registered users in OctoPrint.
responses: responses:

View File

@ -1,7 +1,7 @@
summary: Add a new user summary: Add a new user
operationId: addUser operationId: addUser
tags: tags:
- user - User
description: >- description: >-
Adds a new user to OctoPrint. Adds a new user to OctoPrint.
requestBody: requestBody:

View File

@ -1,7 +1,7 @@
summary: Delete a users api key summary: Delete a users api key
operationId: deleteApiKey operationId: deleteApiKey
tags: tags:
- user - User
description: >- description: >-
Deletes a users personal API key. Deletes a users personal API key.

View File

@ -1,7 +1,7 @@
summary: Regenerate a users api key summary: Regenerate a users api key
operationId: regenerateApiKey operationId: regenerateApiKey
tags: tags:
- user - User
description: >- description: >-
Generates a new API key for the user. Generates a new API key for the user.

View File

@ -3,7 +3,7 @@ operationId: deleteUser
description: >- description: >-
Deletes a user by name. Deletes a user by name.
tags: tags:
- user - User
parameters: parameters:
- $ref: ../../../components/parameters/username.yaml - $ref: ../../../components/parameters/username.yaml
responses: responses:

View File

@ -1,7 +1,7 @@
summary: Retrieve a user summary: Retrieve a user
operationId: getUser operationId: getUser
tags: tags:
- user - User
description: >- description: >-
Retrieves information about a user. Retrieves information about a user.
parameters: parameters:

View File

@ -1,7 +1,7 @@
summary: Change user password summary: Change user password
operationId: changeUserPassword operationId: changeUserPassword
tags: tags:
- user - User
description: >- description: >-
Changes the password of a user. Changes the password of a user.
parameters: parameters:

View File

@ -1,7 +1,7 @@
summary: Update a user summary: Update a user
operationId: updateUser operationId: updateUser
tags: tags:
- user - User
description: >- description: >-
Updates an existing user. Updates an existing user.
parameters: parameters:

View File

@ -1,7 +1,7 @@
summary: Get a user's settings summary: Get a user's settings
operationId: getUserSettings operationId: getUserSettings
tags: tags:
- user - User
description: >- description: >-
Retrieves a users settings. Retrieves a users settings.
Will return a 200 OK with a JSON object representing the users personal settings (if any) as body. Will return a 200 OK with a JSON object representing the users personal settings (if any) as body.

View File

@ -1,7 +1,7 @@
summary: Update a users settings summary: Update a users settings
operationId: updateUserSettings operationId: updateUserSettings
tags: tags:
- user - User
description: >- description: >-
Retrieves a users settings. Retrieves a users settings.
Will return a 200 OK with a JSON object representing the users personal settings (if any) as body. Will return a 200 OK with a JSON object representing the users personal settings (if any) as body.

View File

@ -1,6 +1,9 @@
get: get:
summary: Printer Connection summary: Printer Connection
operationId: getConnection operationId: getConnection
tags:
- General
- System
description: >- description: >-
Retrieve the current connection settings, including information Retrieve the current connection settings, including information
regarding the available baudrates and serial ports and the current regarding the available baudrates and serial ports and the current
@ -15,6 +18,9 @@ get:
post: post:
summary: Change Printer Connection summary: Change Printer Connection
operationId: setConnectionOptions operationId: setConnectionOptions
tags:
- General
- System
requestBody: requestBody:
required: true required: true
content: content:

View File

@ -1,7 +1,7 @@
get: get:
tags: tags:
- user - User
- Session & Login - General
summary: Current User summary: Current User
description: >- description: >-
Retrieves information about the current user. Retrieves information about the current user.

View File

@ -3,6 +3,8 @@ operationId: getAllFiles
description: >- description: >-
Retrieve information regarding all files currently available and regarding the disk space still available locally in the system. Retrieve information regarding all files currently available and regarding the disk space still available locally in the system.
By default only returns the files and folders in the root directory. If the query parameter `recursive` is provided and set to `true`, returns all files and folders. By default only returns the files and folders in the root directory. If the query parameter `recursive` is provided and set to `true`, returns all files and folders.
tags:
- Files
parameters: parameters:
- in: query - in: query
name: recursive name: recursive

View File

@ -3,6 +3,8 @@ operationId: getAllFilesInLocation
description: >- description: >-
Retrieve information regarding all files currently available and regarding the disk space still available locally in the system. Retrieve information regarding all files currently available and regarding the disk space still available locally in the system.
By default only returns the files and folders in the root directory. If the query parameter `recursive` is provided and set to `true`, returns all files and folders. By default only returns the files and folders in the root directory. If the query parameter `recursive` is provided and set to `true`, returns all files and folders.
tags:
- Files
parameters: parameters:
- $ref: ../../../components/parameters/fileLocation.yaml - $ref: ../../../components/parameters/fileLocation.yaml
- $ref: ../../../components/parameters/fileRecursive.yaml - $ref: ../../../components/parameters/fileRecursive.yaml

View File

@ -1,6 +1,8 @@
summary: Upload file or create folder summary: Upload file or create folder
operationId: uploadFile operationId: uploadFile
description: Upload a file to the selected location or create a new empty folder on it. description: Upload a file to the selected location or create a new empty folder on it.
tags:
- Files
parameters: parameters:
- $ref: ../../../components/parameters/fileLocation.yaml - $ref: ../../../components/parameters/fileLocation.yaml
requestBody: requestBody:

View File

@ -1,6 +1,8 @@
summary: Delete a file or folder summary: Delete a file or folder
operationId: deleteFileOrFolder operationId: deleteFileOrFolder
description: Delete the selected path on the selected location. description: Delete the selected path on the selected location.
tags:
- Files
parameters: parameters:
- $ref: ../../../components/parameters/fileLocation.yaml - $ref: ../../../components/parameters/fileLocation.yaml
- $ref: ../../../components/parameters/filePath.yaml - $ref: ../../../components/parameters/filePath.yaml

View File

@ -1,6 +1,8 @@
summary: Retrieve a specific files or folders information summary: Retrieve a specific files or folders information
operationId: getFileOrFolder operationId: getFileOrFolder
description: Retrieves the selected files or folders information. description: Retrieves the selected files or folders information.
tags:
- Files
parameters: parameters:
- $ref: ../../../components/parameters/fileLocation.yaml - $ref: ../../../components/parameters/fileLocation.yaml
- $ref: ../../../components/parameters/filePath.yaml - $ref: ../../../components/parameters/filePath.yaml

View File

@ -1,6 +1,8 @@
summary: Issue a file command summary: Issue a file command
operationId: sendFileCommand operationId: sendFileCommand
description: Issue a file command to an existing file. description: Issue a file command to an existing file.
tags:
- Files
parameters: parameters:
- $ref: ../../../components/parameters/fileLocation.yaml - $ref: ../../../components/parameters/fileLocation.yaml
- $ref: ../../../components/parameters/filePath.yaml - $ref: ../../../components/parameters/filePath.yaml

View File

@ -1,6 +1,8 @@
summary: Retrieve information about the current job summary: Retrieve information about the current job
operationId: getCurrentJob operationId: getCurrentJob
description: Retrieve information about the current job (if there is one). description: Retrieve information about the current job (if there is one).
tags:
- Jobs
requestBody: requestBody:
content: content:
application/json: application/json:

View File

@ -2,6 +2,8 @@ summary: Issue a job command
operationId: sendJobCommand operationId: sendJobCommand
description: >- description: >-
Job commands allow starting, pausing and cancelling print jobs. Job commands allow starting, pausing and cancelling print jobs.
tags:
- Jobs
requestBody: requestBody:
$ref: ../../components/requestBodies/JobCommand.yaml $ref: ../../components/requestBodies/JobCommand.yaml
responses: responses:

View File

@ -4,6 +4,8 @@ description: >-
Retrieves a list of installed language packs. Retrieves a list of installed language packs.
The response body will contain a list of available languages packs. The response body will contain a list of available languages packs.
tags:
- Languages
responses: responses:
"200": "200":
description: >- description: >-

View File

@ -10,6 +10,8 @@ description: >-
Only files with one of the extensions zip, tar.gz, tgz or tar will be processed, for other file extensions a 400 Bad Request will be returned. Only files with one of the extensions zip, tar.gz, tgz or tar will be processed, for other file extensions a 400 Bad Request will be returned.
Will return a list of installed language packs upon completion, as described in Retrieve installed language packs. Will return a list of installed language packs upon completion, as described in Retrieve installed language packs.
tags:
- Languages
requestBody: requestBody:
content: content:
multipart/form-data: multipart/form-data:

View File

@ -2,6 +2,8 @@ summary: Delete a language pack
operationId: deleteLanguagePack operationId: deleteLanguagePack
description: >- description: >-
Deletes the language pack pack for locale locale. Can be either the _core pack (containing translations for core OctoPrint) or the language pack for a plugin specified by the plugin identifier. Deletes the language pack pack for locale locale. Can be either the _core pack (containing translations for core OctoPrint) or the language pack for a plugin specified by the plugin identifier.
tags:
- Languages
parameters: parameters:
- in: path - in: path
name: locale name: locale

View File

@ -1,7 +1,7 @@
post: post:
tags: tags:
- general - General
- user - User
summary: Login summary: Login
description: >- description: >-
Creates a login session or retrieves information about the currently existing session (“passive login”). Creates a login session or retrieves information about the currently existing session (“passive login”).

View File

@ -1,7 +1,7 @@
post: post:
tags: tags:
- user - User
- Session & Login - General
summary: Logout summary: Logout
description: Ends the current login session of the current user description: Ends the current login session of the current user
operationId: logout operationId: logout

View File

@ -1,5 +1,8 @@
summary: Retrieve the current bed state summary: Retrieve the current bed state
operationId: getBedState operationId: getBedState
tags:
- Bed
- State
description: >- description: >-
Retrieves the current temperature data (actual, target and offset) plus optionally a (limited) history (actual, target, timestamp) for the printers heated bed. Retrieves the current temperature data (actual, target and offset) plus optionally a (limited) history (actual, target, timestamp) for the printers heated bed.
Its also possible to retrieve the temperature history by supplying the history query parameter set to true. The amount of returned history data points can be limited using the limit query parameter. Its also possible to retrieve the temperature history by supplying the history query parameter set to true. The amount of returned history data points can be limited using the limit query parameter.

View File

@ -2,6 +2,8 @@ summary: Issue a bed command
operationId: sendBedCmd operationId: sendBedCmd
description: >- description: >-
Bed commands allow setting the temperature and temperature offsets for the printers heated bed. Bed commands allow setting the temperature and temperature offsets for the printers heated bed.
tags:
- Bed
requestBody: requestBody:
$ref: ../../components/requestBodies/PrinterBedCommand.yaml $ref: ../../components/requestBodies/PrinterBedCommand.yaml
responses: responses:

View File

@ -4,6 +4,9 @@ description: >-
Retrieves the current temperature data (actual, target and offset) plus optionally a (limited) history (actual, target, timestamp) for the printers heated chamber. Retrieves the current temperature data (actual, target and offset) plus optionally a (limited) history (actual, target, timestamp) for the printers heated chamber.
Its also possible to retrieve the temperature history by supplying the history query parameter set to true. The amount of returned history data points can be limited using the limit query parameter. Its also possible to retrieve the temperature history by supplying the history query parameter set to true. The amount of returned history data points can be limited using the limit query parameter.
tags:
- Chamber
- State
parameters: parameters:
- $ref: ../../components/parameters/history.yaml - $ref: ../../components/parameters/history.yaml
- $ref: ../../components/parameters/limit.yaml - $ref: ../../components/parameters/limit.yaml

View File

@ -2,6 +2,8 @@ summary: Issue a bed command
operationId: sendChamberCmd operationId: sendChamberCmd
description: >- description: >-
Chamber commands allow setting the temperature and temperature offsets for the printers heated chamber. Chamber commands allow setting the temperature and temperature offsets for the printers heated chamber.
tags:
- Chamber
requestBody: requestBody:
$ref: ../../components/requestBodies/PrinterChamberCommand.yaml $ref: ../../components/requestBodies/PrinterChamberCommand.yaml
responses: responses:

View File

@ -4,5 +4,7 @@ description: >-
Retrieves the custom controls as configured in config.yaml. Retrieves the custom controls as configured in config.yaml.
Please refer to the documentation of custom controls on what data structure to expect here. Please refer to the documentation of custom controls on what data structure to expect here.
tags:
- Command
responses: responses:
$ref: ../../../components/responses/CustomControls.yaml $ref: ../../../components/responses/CustomControls.yaml

View File

@ -2,6 +2,8 @@ summary: Send an arbitrary command to the printer
operationId: sendPrinterCmd operationId: sendPrinterCmd
description: >- description: >-
Sends any command to the printer via the serial interface. Should be used with some care as some commands can interfere with or even stop a running print job. Sends any command to the printer via the serial interface. Should be used with some care as some commands can interfere with or even stop a running print job.
tags:
- Command
requestBody: requestBody:
content: content:
application/json: application/json:

View File

@ -1,6 +1,8 @@
summary: Printer State summary: Printer State
description: Retrieves the current state of the printer. description: Retrieves the current state of the printer.
operationId: getPrinterState operationId: getPrinterState
tags:
- State
parameters: parameters:
- $ref: ../../components/parameters/history.yaml - $ref: ../../components/parameters/history.yaml
- $ref: ../../components/parameters/limit.yaml - $ref: ../../components/parameters/limit.yaml

View File

@ -2,6 +2,8 @@ summary: Issue a print head command
operationId: sendPrintheadCommand operationId: sendPrintheadCommand
description: >- description: >-
Print head commands allow jogging and homing the print head in all three axes. Print head commands allow jogging and homing the print head in all three axes.
tags:
- Printhead
requestBody: requestBody:
$ref: ../../components/requestBodies/PrintheadCommand.yaml $ref: ../../components/requestBodies/PrintheadCommand.yaml
responses: responses:

View File

@ -6,6 +6,9 @@ description: >-
If SD support has been disabled in OctoPrints settings, a 404 Not Found is returned. If SD support has been disabled in OctoPrints settings, a 404 Not Found is returned.
Returns a 200 OK with an SD State Response in the body upon success. Returns a 200 OK with an SD State Response in the body upon success.
tags:
- SD Card
- State
responses: responses:
"200": "200":
description: >- description: >-

View File

@ -2,6 +2,8 @@ summary: Issue an SD command
operationId: sendSdCmd operationId: sendSdCmd
description: >- description: >-
SD commands allow initialization, refresh and release of the printers SD card (if available). SD commands allow initialization, refresh and release of the printers SD card (if available).
tags:
- SD Card
requestBody: requestBody:
$ref: ../../components/requestBodies/PrinterSdCommand.yaml $ref: ../../components/requestBodies/PrinterSdCommand.yaml
responses: responses:

View File

@ -2,6 +2,9 @@ summary: Retrieve the current tool state
operationId: getToolState operationId: getToolState
description: >- description: >-
Retrieves the current temperature data (actual, target and offset) plus optionally a (limited) history (actual, target, timestamp) for all of the printers available tools. Its also possible to retrieve the temperature history by supplying the history query parameter set to true. The amount of returned history data points can be limited using the limit query parameter. Retrieves the current temperature data (actual, target and offset) plus optionally a (limited) history (actual, target, timestamp) for all of the printers available tools. Its also possible to retrieve the temperature history by supplying the history query parameter set to true. The amount of returned history data points can be limited using the limit query parameter.
tags:
- Tool
- State
parameters: parameters:
- $ref: ../../components/parameters/history.yaml - $ref: ../../components/parameters/history.yaml
- $ref: ../../components/parameters/limit.yaml - $ref: ../../components/parameters/limit.yaml

View File

@ -2,6 +2,8 @@ summary: Issue a tool command
operationId: sendToolCmd operationId: sendToolCmd
description: >- description: >-
Tool commands allow setting the temperature and temperature offsets for the printers tools (hotends), selecting the current tool and extruding/retracting from the currently selected tool. Tool commands allow setting the temperature and temperature offsets for the printers tools (hotends), selecting the current tool and extruding/retracting from the currently selected tool.
tags:
- Tool
requestBody: requestBody:
$ref: ../../components/requestBodies/PrinterToolCommand.yaml $ref: ../../components/requestBodies/PrinterToolCommand.yaml
responses: responses:

View File

@ -2,9 +2,11 @@ summary: Retrieve all printer profiles
operationId: getPrinterProfiles operationId: getPrinterProfiles
description: >- description: >-
Retrieves a list of all configured printer profiles. Retrieves a list of all configured printer profiles.
tags:
- Profiles
responses: responses:
"200": "200":
description: >- description: >-
List of available printer profiles List of available printer profiles
content: content:
application/json: application/json:
@ -14,4 +16,4 @@ responses:
profiles: profiles:
type: array type: array
items: items:
$ref: ../../components/schemas/printer/Profile.yaml $ref: ../../components/schemas/printer/Profile.yaml

View File

@ -3,12 +3,14 @@ operationId: addNewPrinterProfile
description: >- description: >-
Adds a new printer profile based on either the current default profile or the profile identified in basedOn. 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. The provided profile data will be merged with the profile data from the base profile.
tags:
- Profiles
requestBody: requestBody:
content: content:
application/json: application/json:
schema: schema:
type: object type: object
required: required:
- profile - profile
properties: properties:
basedOn: basedOn:
@ -18,7 +20,7 @@ requestBody:
required: false required: false
responses: responses:
"200": "200":
description: >- description: >-
Profile saved. Profile saved.
content: content:
application/json: application/json:
@ -27,4 +29,3 @@ responses:
properties: properties:
profile: profile:
$ref: ../../components/schemas/printer/Profile.yaml $ref: ../../components/schemas/printer/Profile.yaml

View File

@ -4,10 +4,12 @@ description: >-
Deletes an existing printer profile by its profile identifier. Deletes an existing printer profile by its profile identifier.
parameters: parameters:
- $ref: ../../components/parameters/profileIdentifier.yaml - $ref: ../../components/parameters/profileIdentifier.yaml
tags:
- Profiles
responses: responses:
"204": "204":
description: >- description: >-
Profile removed Profile removed
"409": "409":
description: >- description: >-
If the profile to be deleted is the currently selected profile, a 409 Conflict will be returned. If the profile to be deleted is the currently selected profile, a 409 Conflict will be returned.

View File

@ -2,11 +2,13 @@ summary: Retrieve a single printer profile
operationId: getPrinterProfile operationId: getPrinterProfile
description: >- description: >-
Retrieves an existing single printer profile. Retrieves an existing single printer profile.
tags:
- Profiles
parameters: parameters:
- $ref: ../../components/parameters/profileIdentifier.yaml - $ref: ../../components/parameters/profileIdentifier.yaml
responses: responses:
"200": "200":
description: >- description: >-
List of available printer profiles List of available printer profiles
content: content:
application/json: application/json:
@ -14,4 +16,4 @@ responses:
$ref: ../../components/schemas/printer/Profile.yaml $ref: ../../components/schemas/printer/Profile.yaml
"404": "404":
description: >- description: >-
The profile does not exist The profile does not exist

View File

@ -3,13 +3,15 @@ operationId: updatePrinterProfile
description: >- description: >-
Adds a new printer profile based on either the current default profile or the profile identified in basedOn. 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. The provided profile data will be merged with the profile data from the base profile.
tags:
- Profiles
parameters: parameters:
- $ref: ../../components/parameters/profileIdentifier.yaml - $ref: ../../components/parameters/profileIdentifier.yaml
requestBody: requestBody:
$ref: "../../components/requestBodies/PrinterProfileChange.yaml" $ref: "../../components/requestBodies/PrinterProfileChange.yaml"
responses: responses:
"200": "200":
description: >- description: >-
Profile saved. Profile saved.
content: content:
application/json: application/json:
@ -18,4 +20,3 @@ responses:
properties: properties:
profile: profile:
$ref: ../../components/schemas/printer/Profile.yaml $ref: ../../components/schemas/printer/Profile.yaml

View File

@ -4,10 +4,13 @@ description: >-
Generates a new system wide API key. Generates a new system wide API key.
Does not expect a body. Will return the generated API key as apikey property in the JSON object contained in the response body. Does not expect a body. Will return the generated API key as apikey property in the JSON object contained in the response body.
tags:
- System
- Settings
responses: responses:
"200": "200":
description: >- description: >-
ApiKey was regenerated ApiKey was regenerated
"403": "403":
description: >- description: >-
No admin rights No admin rights

View File

@ -2,6 +2,8 @@ summary: Retrieve current settings
operationId: getSettings operationId: getSettings
description: >- description: >-
Retrieves the current configuration of OctoPrint. Retrieves the current configuration of OctoPrint.
tags:
- Settings
responses: responses:
"200": "200":
description: >- description: >-
@ -9,4 +11,4 @@ responses:
content: content:
application/json: application/json:
schema: schema:
$ref: ../../components/schemas/Config.yaml $ref: ../../components/schemas/Config.yaml

View File

@ -4,6 +4,8 @@ description: >-
Saves the provided settings in OctoPrint. Saves the provided settings in OctoPrint.
Expects a JSON object with the settings to change as request body. This can be either a full settings tree, or only a partial tree containing only those fields that should be updated. Expects a JSON object with the settings to change as request body. This can be either a full settings tree, or only a partial tree containing only those fields that should be updated.
tags:
- Settings
requestBody: requestBody:
content: content:
application/json: application/json:
@ -16,4 +18,4 @@ responses:
content: content:
application/json: application/json:
schema: schema:
$ref: ../../components/schemas/Config.yaml $ref: ../../components/schemas/Config.yaml

View File

@ -4,6 +4,9 @@ description: >-
Fetch data (currently only the sorting order) of all registered template components in the system. Fetch data (currently only the sorting order) of all registered template components in the system.
Use this to get a full list of the identifiers of all UI components provided either by core OctoPrint or any currently active plugins. Use this to get a full list of the identifiers of all UI components provided either by core OctoPrint or any currently active plugins.
tags:
- Settings
- Templates
responses: responses:
"200": "200":
description: >- description: >-
@ -11,4 +14,4 @@ responses:
content: content:
application/json: application/json:
schema: schema:
$ref: ../../components/schemas/Templates.yaml $ref: ../../components/schemas/Templates.yaml

View File

@ -2,6 +2,8 @@ summary: List all registered system commands
operationId: getSystemCmds operationId: getSystemCmds
description: >- description: >-
Retrieves all configured system commands. Retrieves all configured system commands.
tags:
- System Commands
responses: responses:
"200": "200":
description: >- description: >-
@ -14,4 +16,4 @@ responses:
core: core:
type: array type: array
items: items:
$ref: ../../../components/schemas/system/ClientCmd.yaml $ref: ../../../components/schemas/system/ClientCmd.yaml

View File

@ -2,6 +2,8 @@ summary: List all registered system commands for a source
operationId: getSystemSourceCmds operationId: getSystemSourceCmds
description: >- description: >-
Retrieves the configured system commands for the specified source. Retrieves the configured system commands for the specified source.
tags:
- System Commands
parameters: parameters:
- $ref: ../../../components/parameters/systemCmdSource.yaml - $ref: ../../../components/parameters/systemCmdSource.yaml
responses: responses:
@ -13,4 +15,4 @@ responses:
schema: schema:
type: array type: array
items: items:
$ref: ../../../components/schemas/system/ClientCmd.yaml $ref: ../../../components/schemas/system/ClientCmd.yaml

View File

@ -2,6 +2,8 @@ summary: Execute a registered system command
operationId: executeSysCmd operationId: executeSysCmd
description: >- description: >-
Execute the system command action defined in source. Execute the system command action defined in source.
tags:
- System Commands
parameters: parameters:
- $ref: ../../../components/parameters/systemCmdSource.yaml - $ref: ../../../components/parameters/systemCmdSource.yaml
- in: path - in: path

View File

@ -6,6 +6,9 @@ get:
version, text containing the server version including the prefix ``OctoPrint version, text containing the server version including the prefix ``OctoPrint
`` (to determine that this is indeed a genuine OctoPrint instance). `` (to determine that this is indeed a genuine OctoPrint instance).
operationId: getVersion operationId: getVersion
tags:
- General
- System
responses: responses:
"200": "200":
description: OctoPrint server version description: OctoPrint server version