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

additional docs on news api

ulferts68fe020ee8b2
diff --git a/docs/api/apiv3/components/schemas/list_of_news_model.yml b/docs/api/apiv3/components/schemas/list_of_news_model.yml
index 7bfc7048585..6e10eb41557 100644
--- a/docs/api/apiv3/components/schemas/list_of_news_model.yml
+++ b/docs/api/apiv3/components/schemas/list_of_news_model.yml
@@ -37,6 +37,12 @@ example:
author:
href: "/api/v3/users/2"
title: Peggie Feeney
+ updateImmediately:
+ href: "api/v3/news/1"
+ method: "patch"
+ delete:
+ href: "api/v3/news/1"
+ method: "delete"
- _type: News
id: 2
title: terminatio tutamen. Officia adeptio sp
@@ -62,6 +68,12 @@ example:
author:
href: "/api/v3/users/2"
title: Peggie Feeney
+ updateImmediately:
+ href: "api/v3/news/2"
+ method: "patch"
+ delete:
+ href: "api/v3/news/2"
+ method: "delete"
_links:
self:
href: "/api/v3/news?offset=1&pageSize=2"
diff --git a/docs/api/apiv3/components/schemas/news_create_model.yml b/docs/api/apiv3/components/schemas/news_create_model.yml
index 1d29fa7e977..582ddf486dd 100644
--- a/docs/api/apiv3/components/schemas/news_create_model.yml
+++ b/docs/api/apiv3/components/schemas/news_create_model.yml
@@ -27,7 +27,6 @@ properties:
**Resource**: Project
example:
- _type: News
title: asperiores possimus nam doloribus ab
summary: Celebrer spiculum colo viscus claustrum atque. Id nulla culpa sumptus.
Comparo crapula depopulo demonstro.
diff --git a/docs/api/apiv3/components/schemas/news_model.yml b/docs/api/apiv3/components/schemas/news_model.yml
index 7bf4c17300f..a6ee2551aac 100644
--- a/docs/api/apiv3/components/schemas/news_model.yml
+++ b/docs/api/apiv3/components/schemas/news_model.yml
@@ -54,6 +54,20 @@ properties:
**Resource**: User
readOnly: true
+ updateImmediately:
+ allOf:
+ - "$ref": "./link.yml"
+ - description: |-
+ Directly perform edits on the news
+
+ **Permission** manage news
+ delete:
+ allOf:
+ - "$ref": "./link.yml"
+ - description: |-
+ Delete the news
+
+ **Permission** manage news
example:
_type: News
id: 1
@@ -83,6 +97,12 @@ example:
author:
href: "/api/v3/users/2"
title: Peggie Feeney
+ updateImmediately:
+ href: "api/v3/news/1"
+ method: "patch"
+ delete:
+ href: "api/v3/news/1"
+ method: "delete"
_embedded:
project:
_type: Project...
diff --git a/docs/api/apiv3/paths/news_item.yml b/docs/api/apiv3/paths/news_item.yml
index 94512dc9c79..980718d7f6c 100644
--- a/docs/api/apiv3/paths/news_item.yml
+++ b/docs/api/apiv3/paths/news_item.yml
@@ -96,7 +96,7 @@ patch:
content:
application/json:
schema:
- $ref: '../components/schemas/news_model.yml'
+ $ref: '../components/schemas/news_create_model.yml'
responses:
'200':
content:
diff --git a/docs/api/apiv3/tags/news.yml b/docs/api/apiv3/tags/news.yml
index 685dc800abf..741bf946197 100644
--- a/docs/api/apiv3/tags/news.yml
+++ b/docs/api/apiv3/tags/news.yml
@@ -4,7 +4,10 @@ description: |-
## Actions
- None yet
+ | Link | Description | Condition |
+ |:-------------------:|--------------------------------------------------------------------------| ---------------------------------------|
+ | delete | Delete the new | **Permission**: manage news |
+ | updateImmediately | Directly perform edits on the news | **Permission**: manage news |
## Linked Properties