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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
add description and permissions to /api/v3/days/* endpoints
Christophe Bliard6e23c4bddb50
diff --git a/docs/api/apiv3/components/schemas/non_working_day_model.yml b/docs/api/apiv3/components/schemas/non_working_day_model.ymlindex ea00d23dbbd..0769d6faba7 100644--- a/docs/api/apiv3/components/schemas/non_working_day_model.yml+++ b/docs/api/apiv3/components/schemas/non_working_day_model.yml@@ -28,10 +28,9 @@ properties:allOf:- $ref: './link.yml'- description: |-- This non working day. If the non-working day is recurring like a weekend day, the resource will point to a- week day.+ This non-working day.- **Resource**: NonWorkingDay or WeekDay+ **Resource**: NonWorkingDayexample:_type: NonWorkingDaydate: '2022-12-25'diff --git a/docs/api/apiv3/components/schemas/week_day_model.yml b/docs/api/apiv3/components/schemas/week_day_model.ymlindex 4d237fba62e..f1b6dbf4ea2 100644--- a/docs/api/apiv3/components/schemas/week_day_model.yml+++ b/docs/api/apiv3/components/schemas/week_day_model.yml@@ -25,7 +25,7 @@ properties:working:type: booleandescription: |-- `true` for a working day. `false` for a weekend day.+ `true` for a working week day, `false` otherwise._links:allOf:- $ref: './week_day_self_link_model.yml'diff --git a/docs/api/apiv3/components/schemas/week_day_write_model.yml b/docs/api/apiv3/components/schemas/week_day_write_model.ymlindex f87c79c5a9b..f516733bcc2 100644--- a/docs/api/apiv3/components/schemas/week_day_write_model.yml+++ b/docs/api/apiv3/components/schemas/week_day_write_model.yml@@ -2,7 +2,7 @@---type: objectdescription: |-- Describes a week day as a working day or a non working day (weekend).+ Describes a week day as a working day or a non-working day (weekend).required:- _type- workingdiff --git a/docs/api/apiv3/paths/days_non_working.yml b/docs/api/apiv3/paths/days_non_working.ymlindex 1a600237e12..8c0c6072f1d 100644--- a/docs/api/apiv3/paths/days_non_working.yml+++ b/docs/api/apiv3/paths/days_non_working.yml@@ -1,7 +1,7 @@# /api/v3/days/non_working---post:- summary: Create a non working day+ summary: Creates a non-working dayoperationId: create_non_working_daytags:- Work Schedule@@ -19,9 +19,9 @@ post:date: '2022-12-25'name: 'Christmas'responses:- '200':+ '201':description: |-- OK+ Non-working day created.content:application/hal+json:schema:diff --git a/docs/api/apiv3/tags/work_schedule.yml b/docs/api/apiv3/tags/work_schedule.ymlindex 0e2cd06fa59..27c4c2bb315 100644--- a/docs/api/apiv3/tags/work_schedule.yml+++ b/docs/api/apiv3/tags/work_schedule.yml@@ -13,3 +13,66 @@ description: |-Endpoints can define which week days are working/non-working days, and whichdates are non-working days.++ To represent the work schedule, `Day`, `WeekDay`, and `NonWorkingDay` models are used.++ ## Day Actions++ None++ ## Day Linked Properties++ | Link | Description | Type | Constraints | Supported operations |+ | :---------------: | ---------------------------------------------------------------- | ------------------------- | ----------- | -------------------- |+ | self | This day | Day | not null | READ |+ | nonWorkingReasons | A list of resources describing why this day is a non-working day | (WeekDay/NonWorkingDay)[] | | READ |+ | weekDay | The week day for this day | WeekDay | not null | READ |++ ## Day Local Properties++ | Property | Description | Type | Constraints | Supported operations |+ | :--------: | ------------------------------------------- | ------- | -------------- | -------------------- |+ | date | The date in ISO8601 format (YYYY-MM-DD) | Date | not null | READ |+ | name | The name of the day | String | not null | READ |+ | working | `true` for a working day, `false` otherwise | Boolean | not null | READ |+++ ## WeekDay Actions++ | Link | Description | Condition |+ | :----: | -------------------- | ---------------------------------- |+ | update | Update this week day | **Permission**: edit work schedule |++ ## WeekDay Linked Properties++ | Link | Description | Type | Constraints | Supported operations |+ | :--: | ------------- | ------- | ----------- | -------------------- |+ | self | This week day | WeekDay | not null | READ |++ ## WeekDay Local Properties++ | Property | Description | Type | Constraints | Supported operations |+ | :------: | --------------------------------------------------- | ------- | -------------- | -------------------- |+ | day | The week day from 1 to 7. 1 is Monday. 7 is Sunday. | Integer | x >= 1, x <= 7 | READ |+ | name | The name of the week day | String | not null | READ |+ | working | `true` for a working week day, `false` otherwise | Boolean | not null | READ/WRITE |+++ ## NonWorkingDay Actions++ | Link | Description | Condition |+ | :----: | --------------------------- | ---------------------------------- |+ | update | Update this non-working day | **Permission**: edit work schedule |++ ## NonWorkingDay Linked Properties++ | Link | Description | Type | Constraints | Supported operations |+ | :--: | -------------------- | ------------- | ----------- | -------------------- |+ | self | This non-working day | NonWorkingDay | not null | READ |++ ## NonWorkingDay Local Properties++ | Property | Description | Type | Constraints | Supported operations |+ | :------: | --------------------------------------- | ------ | ----------- | -------------------- |+ | date | The date in ISO8601 format (YYYY-MM-DD) | Date | not null | READ |+ | name | The name of the non-working day day | String | not null | READ/WRITE |