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

[#40228] improved spec examples

Eric Schuberte74134c857c2
diff --git a/docs/api/apiv3/components/schemas/file_links_model.yml b/docs/api/apiv3/components/schemas/file_links_model.yml
index 0fd1f44f8f2..401e79aefd2 100644
--- a/docs/api/apiv3/components/schemas/file_links_model.yml
+++ b/docs/api/apiv3/components/schemas/file_links_model.yml
@@ -51,42 +51,6 @@ example:
lastModifiedAt: '2021-12-20T14:00:13.987Z'
createdByName: Luke Skywalker
lastModifiedByName: Anakin Skywalker
- _embedded:
- storage:
- id: 1337
- _type: Storage
- name: It's no moon
- createdAt: '2021-12-20T13:37:00.211Z'
- updatedAt: '2021-12-20T13:37:00.211Z'
- _links:
- self:
- href: /api/v3/storages/1337
- title: It's no moon
- type:
- href: urn:openproject-org:api:v3:storages:nextcloud
- title: Nextcloud
- origin:
- href: https://nextcloud.deathstar.rocks/
- container:
- _hint: Work package resource shortened for brevity
- _type: WorkPackage
- _links:
- self:
- href: "/api/v3/work_packages/1528"
- title: Develop API
- schema:
- href: "/api/v3/work_packages/schemas/11-2"
- id: 1528
- subject: Develop API
- description:
- format: markdown
- raw: Develop super cool OpenProject API.
- html: "<p>Develop super cool OpenProject API.</p>"
- scheduleManually: false
- startDate:
- dueDate:
- createdAt: '2014-08-29T12:40:53Z'
- updatedAt: '2014-08-29T12:44:41Z'
_links:
self:
href: /api/v3/work_package/17/file_links/1337
@@ -102,12 +66,10 @@ example:
title: Obi-Wan Kenobi
delete:
href: /api/v3/work_package/17/file_links/1337
- title: file link delete API
+ method: delete
originOpen:
href: https://nextcloud.deathstar.rocks/index.php/f?fileid=5503
- title: file open
staticOriginOpen:
href: /api/v3/work_package/17/file_links/1337/open
- title: file open
- _hint: File Link resource shortened for brevity
id: 1338
diff --git a/docs/api/apiv3/components/schemas/work_packages_model.yml b/docs/api/apiv3/components/schemas/work_packages_model.yml
index 99c05009807..6d9b100d8d2 100644
--- a/docs/api/apiv3/components/schemas/work_packages_model.yml
+++ b/docs/api/apiv3/components/schemas/work_packages_model.yml
@@ -16,9 +16,9 @@ allOf:
allOf:
- "$ref": "./link.yml"
- description: |-
- The watcher list
+ The work package collection
- **Resource**: WatchersModel
+ **Resource**: WorkPackageCollection
readOnly: true
_embedded:
type: object