]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Add documentation to new job sort parameters
authorMarcin Haba <marcin.haba@bacula.pl>
Wed, 9 Nov 2022 08:27:32 +0000 (09:27 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Thu, 17 Nov 2022 09:05:10 +0000 (10:05 +0100)
gui/baculum/protected/API/openapi_baculum.json

index 0d3b93cac74266f4bca641557866f9bfe596fda1..6b467c8a34ce2bd22ca24b5d7a3559d581148ca0 100644 (file)
                                                "schema": {
                                                        "type": "integer"
                                                }
+                                       },
+                                       {
+                                               "name": "order_by",
+                                               "in": "query",
+                                               "required": false,
+                                               "description": "Sort by selected job property (default jobid). There can be any job property (jobid, job, clientid ...etc.) except client, fileset and pool.",
+                                               "schema": {
+                                                       "type": "string"
+                                               }
+                                       },
+                                       {
+                                               "name": "order_direction",
+                                               "in": "query",
+                                               "required": false,
+                                               "description": "Order direction. It can be 'asc' (ascending order) or 'desc' (descending order - default)",
+                                               "schema": {
+                                                       "type": "string",
+                                                       "enum": ["asc", "desc"]
+                                               }
                                        }
                                ]
                        }