Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Improve `watchers_model.yml` and `work_packages_model.yml`

Gunter Ohrnerca626a3ffa42
diff --git a/docs/api/apiv3/components/schemas/watchers_model.yml b/docs/api/apiv3/components/schemas/watchers_model.yml
index 0438905e772..5b2983c8aa8 100644
--- a/docs/api/apiv3/components/schemas/watchers_model.yml
+++ b/docs/api/apiv3/components/schemas/watchers_model.yml
@@ -1,6 +1,43 @@
# Schema: WatchersModel
---
type: object
+properties:
+ total:
+ type: integer
+ description: Total number of entries
+ readOnly: true
+ minimum: 0
+ exclusiveMinimum: false
+ count:
+ type: integer
+ description: Embedded number of entries
+ readOnly: true
+ minimum: 0
+ exclusiveMinimum: false
+ _links:
+ type: object
+ required:
+ - self
+ properties:
+ self:
+ allOf:
+ - "$ref": "./link.yml"
+ - description: |-
+ The watcher list
+
+ **Resource**: WatchersModel
+ readOnly: true
+ _embedded:
+ type: object
+ properties:
+ elements:
+ type: array
+ readOnly: true
+ items:
+ allOf:
+ - "$ref": "./user_model.yml"
+ - description: Collection of Users
+ readOnly: true
example:
_links:
self:
diff --git a/docs/api/apiv3/components/schemas/work_packages_by_project_model.yml b/docs/api/apiv3/components/schemas/work_packages_by_project_model.yml
index fff3f0dc115..4793e886653 100644
--- a/docs/api/apiv3/components/schemas/work_packages_by_project_model.yml
+++ b/docs/api/apiv3/components/schemas/work_packages_by_project_model.yml
@@ -1,6 +1,6 @@
# Schema: Work_Packages_by_ProjectModel
---
-type: object
+$ref: "./work_packages_model.yml"
example:
_links:
self:
diff --git a/docs/api/apiv3/components/schemas/work_packages_model.yml b/docs/api/apiv3/components/schemas/work_packages_model.yml
index 77edb63a12e..eb59fb2c597 100644
--- a/docs/api/apiv3/components/schemas/work_packages_model.yml
+++ b/docs/api/apiv3/components/schemas/work_packages_model.yml
@@ -1,6 +1,43 @@
# Schema: Work_PackagesModel
---
type: object
+properties:
+ total:
+ type: integer
+ description: Total number of entries
+ readOnly: true
+ minimum: 0
+ exclusiveMinimum: false
+ count:
+ type: integer
+ description: Embedded number of entries
+ readOnly: true
+ minimum: 0
+ exclusiveMinimum: false
+ _links:
+ type: object
+ required:
+ - self
+ properties:
+ self:
+ allOf:
+ - "$ref": "./link.yml"
+ - description: |-
+ This Work Package List
+
+ **Resource**: Work_PackagesModel
+ readOnly: true
+ _embedded:
+ type: object
+ properties:
+ elements:
+ type: array
+ readOnly: true
+ items:
+ allOf:
+ - "$ref": "./work_package_model.yml"
+ - description: Collection of WorkPackages
+ readOnly: true
example:
_links:
self: