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

removed duplicated examples for notifications

Markus Kahl0b6a7c288913
diff --git a/docs/api/apiv3/paths/notifications.yml b/docs/api/apiv3/paths/notifications.yml
index 1421063bbde..15b85d6f043 100644
--- a/docs/api/apiv3/paths/notifications.yml
+++ b/docs/api/apiv3/paths/notifications.yml
@@ -48,75 +48,6 @@ get:
'200':
content:
application/hal+json:
- examples:
- response:
- value:
- _embedded:
- elements:
- - _links:
- readIAN:
- href: "/api/v3/notifications/1/read_ian"
- method: "post"
- actor:
- href: "/api/v3/users/2"
- title: Peggie Feeney
- activity:
- href: "/api/v3/activities/1234"
- project:
- href: "/api/v3/projects/1"
- title: Seeded Project
- self:
- href: "/api/v3/notifications/1"
- _type: Notification
- createdAt: "2021-07-20T08:32:18Z"
- updatedAt: "2021-07-20T08:33:19Z"
- details:
- format: markdown
- raw: "<mention class=\"mention\" data-id=\"90\" data-type=\"user\" data-text=\"@Recipeint User\">@Recipient User</mention> test"
- html: "<p class=\"op-uc-p\"><a class=\"user-mention op-uc-link\" title=\"User Recipient User\" href=\"/users/90\">Recipient User</a> test</p>"
- id: 1
- reason: mentioned
- subject: "You have been mentioned in Task #1234 An important task"
- - _links:
- readIAN:
- href: "/api/v3/notifications/1/read_ian"
- method: "post"
- actor:
- href: "/api/v3/users/2"
- title: Peggie Feeney
- activity:
- href: "/api/v3/activities/1234"
- project:
- href: "/api/v3/projects/1"
- title: Seeded Project
- self:
- href: "/api/v3/notifications/1"
- _type: Notification
- createdAt: "2021-07-20T08:32:18Z"
- updatedAt: "2021-07-20T08:33:19Z"
- details:
- format: markdown
- raw: "<mention class=\"mention\" data-id=\"90\" data-type=\"user\" data-text=\"@Recipeint User\">@Recipient User</mention> test"
- html: "<p class=\"op-uc-p\"><a class=\"user-mention op-uc-link\" title=\"User Recipient User\" href=\"/users/90\">Recipient User</a> test</p>"
- id: 1
- reason: mentioned
- subject: "You have been mentioned in Task #1234 An important task"
- _links:
- changeSize:
- href: "/api/v3/notifications?offset=1&pageSize=%7Bsize%7D"
- templated: true
- jumpTo:
- href: "/api/v3/notifications?offset=%7Boffset%7D&pageSize=2"
- templated: true
- nextByOffset:
- href: "/api/v3/notifications?offset=2&pageSize=2"
- self:
- href: "/api/v3/notifications?offset=1&pageSize=2"
- _type: Collection
- count: 1
- offset: 1
- pageSize: 50
- total: 1
schema:
"$ref": "../components/schemas/list_notifications_model.yml"
description: OK
diff --git a/docs/api/apiv3/paths/notifications_item.yml b/docs/api/apiv3/paths/notifications_item.yml
index b4f60b36607..ac51410882a 100644
--- a/docs/api/apiv3/paths/notifications_item.yml
+++ b/docs/api/apiv3/paths/notifications_item.yml
@@ -13,67 +13,6 @@ get:
'200':
content:
application/hal+json:
- examples:
- response:
- value:
- _embedded:
- actor:
- _type: 'User'
- id: 2
- name: "Peggie Feeney"
- project:
- _type: 'Project'
- id: 1
- name: "Seeded project"
- identifier: "seeded-project"
- resource:
- _type: 'WorkPackage'
- id: 55
- subject: "An important task"
- activity:
- _type: "Activity::Comment"
- id: 1234
- comment:
- format: markdown
- raw: "<mention class=\"mention\" data-id=\"90\" data-type=\"user\" data-text=\"@Recipeint User\">@Recipient User</mention> test"
- html: "<p class=\"op-uc-p\"><a class=\"user-mention op-uc-link\" title=\"User Recipient User\" href=\"/users/90\">Recipient User</a> test</p>"
- details: []
- version: 8
- createdAt: "2021-07-20T08:32:18Z"
- _links:
- self:
- href: "/api/v3/activities/1234"
- workPackage:
- href: "/api/v3/work_packages/55"
- user:
- href: "/api/v3/users/2"
- update:
- href: "/api/v3/activities/1234"
- method: patch
- _links:
- readIAN:
- href: "/api/v3/notifications/1/read_ian"
- method: "post"
- actor:
- href: "/api/v3/users/2"
- title: Peggie Feeney
- activity:
- href: "/api/v3/activities/1234"
- project:
- href: "/api/v3/projects/1"
- title: Seeded Project
- self:
- href: "/api/v3/notifications/1"
- _type: Notification
- createdAt: "2021-07-20T08:32:18Z"
- updatedAt: "2021-07-20T08:33:19Z"
- details:
- format: markdown
- raw: "<mention class=\"mention\" data-id=\"90\" data-type=\"user\" data-text=\"@Recipeint User\">@Recipient User</mention> test"
- html: "<p class=\"op-uc-p\"><a class=\"user-mention op-uc-link\" title=\"User Recipient User\" href=\"/users/90\">Recipient User</a> test</p>"
- id: 1
- reason: mentioned
- subject: "You have been mentioned in Task #1234 An important task"
schema:
"$ref": "../components/schemas/notification_model.yml"
description: OK