From 4c1152c70b5cb09158574eb5d3a14ec44695bb56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 8 Jun 2021 15:39:41 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Fix=20printer=20profiles=20API?= =?UTF-8?q?=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Phrasing improved and some copy-paste issues resolved as well. Fixes #4160 --- docs/api/printerprofiles.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/api/printerprofiles.rst b/docs/api/printerprofiles.rst index fc251ea73..c0b2792e2 100644 --- a/docs/api/printerprofiles.rst +++ b/docs/api/printerprofiles.rst @@ -17,9 +17,9 @@ Retrieve all printer profiles .. http:get:: /api/printerprofiles - Retrieves a list of all configured printer profiles. + Retrieves an object representing all configured printer profiles. - Returns a :http:statuscode:`200` with a list of :ref:`profiles `. + Returns a :http:statuscode:`200` with a :ref:`profile list `. Requires the ``CONNECTION`` permission. @@ -37,8 +37,8 @@ Retrieve all printer profiles Content-Type: application/json { - "profiles": [ - { + "profiles": { + "_default": { "id": "_default", "name": "Default", "color": "default", @@ -80,7 +80,7 @@ Retrieve all printer profiles ] } }, - { + "my_profile": { "id": "my_profile", "name": "My Profile", "color": "default", @@ -122,7 +122,7 @@ Retrieve all printer profiles ] } }, - ] + } } @@ -457,7 +457,7 @@ Profile list - Collection of all printer profiles available in the system * - ``profiles.`` - 0..1 - - :ref:`Profile ` + - :ref:`Profile ` - Information about a profile stored in the system. .. _sec-api-printerprofiles-datamodel-update: @@ -475,7 +475,7 @@ Add or update request - Description * - ``profiles`` - 1 - - :ref:`Profile ` + - :ref:`Profile ` - Information about the profile being added/updated. Only the values to be overwritten need to be supplied. Unset fields will be taken from the base profile, which for add requests will be the current default profile unless a different base is defined in the ``basedOn`` property