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
[#50729] added example descriptions and fixed update example
Eric Schubert96a411dc7cd3
diff --git a/docs/api/apiv3/components/examples/membership-create-request-custom-message.yml b/docs/api/apiv3/components/examples/membership-create-request-custom-message.ymlindex 271692ad410..760e86c10bf 100644--- a/docs/api/apiv3/components/examples/membership-create-request-custom-message.yml+++ b/docs/api/apiv3/components/examples/membership-create-request-custom-message.yml@@ -1,4 +1,5 @@-# Example: Create Membership with a custom notification message+description: |-+ Create a membership and send a custom notification message.value:_links:principal:@@ -10,4 +11,4 @@ value:_meta:notificationMessage:format: markdown- raw: 'Execute Order *66*'+ raw: 'Granted permission to execute Order *66*.'diff --git a/docs/api/apiv3/components/examples/membership-create-request-global-role.yml b/docs/api/apiv3/components/examples/membership-create-request-global-role.ymlindex a09ee4b520b..02164b1b76e 100644--- a/docs/api/apiv3/components/examples/membership-create-request-global-role.yml+++ b/docs/api/apiv3/components/examples/membership-create-request-global-role.yml@@ -1,4 +1,5 @@-# Example: Create Membership for a global role+description: |-+ Create a membership for a global role. To address global roles, no project must be set.value:_links:principal:diff --git a/docs/api/apiv3/components/examples/membership-create-request-no-notification.yml b/docs/api/apiv3/components/examples/membership-create-request-no-notification.ymlindex d31471889f8..ef6f3014cf8 100644--- a/docs/api/apiv3/components/examples/membership-create-request-no-notification.yml+++ b/docs/api/apiv3/components/examples/membership-create-request-no-notification.yml@@ -1,4 +1,5 @@-# Example: Create Membership without notification message+description: |-+ Create a membership without sending a notification message.value:_links:principal:diff --git a/docs/api/apiv3/components/examples/membership-form-response.yml b/docs/api/apiv3/components/examples/membership-form-response.ymlindex 66e5f84e991..d14ed02a46f 100644--- a/docs/api/apiv3/components/examples/membership-form-response.yml+++ b/docs/api/apiv3/components/examples/membership-form-response.yml@@ -1,5 +1,5 @@-# Example: Membership form response----+description: |-+ A simple form response example.value:_type: Form_embedded:diff --git a/docs/api/apiv3/components/examples/membership-schema-response.yml b/docs/api/apiv3/components/examples/membership-schema-response.ymlindex e875c2c63b2..bad5dfd9370 100644--- a/docs/api/apiv3/components/examples/membership-schema-response.yml+++ b/docs/api/apiv3/components/examples/membership-schema-response.yml@@ -1,5 +1,5 @@-# Example: Membership schema response----+description: |-+ A simple schema response example.value:_type: 'Schema'_dependencies: [ ]diff --git a/docs/api/apiv3/components/examples/membership-simple-collection-response.yml b/docs/api/apiv3/components/examples/membership-simple-collection-response.ymlindex 671013f2918..c341d4c2100 100644--- a/docs/api/apiv3/components/examples/membership-simple-collection-response.yml+++ b/docs/api/apiv3/components/examples/membership-simple-collection-response.yml@@ -1,5 +1,5 @@-# Example: Simple membership collection response----+description: |-+ A simple membership collection response example.value:_type: Collectiontotal: 2diff --git a/docs/api/apiv3/components/examples/membership-simple-response.yml b/docs/api/apiv3/components/examples/membership-simple-response.ymlindex ba85c9b3a23..44267fd265f 100644--- a/docs/api/apiv3/components/examples/membership-simple-response.yml+++ b/docs/api/apiv3/components/examples/membership-simple-response.yml@@ -1,5 +1,5 @@-# Example: Simple membership response----+description: |-+ A simple membership response example.value:_type: Membershipid: 11diff --git a/docs/api/apiv3/components/examples/membership-update-additional-roles.yml b/docs/api/apiv3/components/examples/membership-update-additional-roles.ymlnew file mode 100644index 00000000000..9d6d4d102bd--- /dev/null+++ b/docs/api/apiv3/components/examples/membership-update-additional-roles.yml@@ -0,0 +1,7 @@+description: |-+ Updates a membership and add multiple roles.+value:+ _links:+ roles:+ - href: '/api/v3/roles/5'+ - href: '/api/v3/roles/6'diff --git a/docs/api/apiv3/components/schemas/membership_write_model.yml b/docs/api/apiv3/components/schemas/membership_write_model.ymlindex a2d035417c2..d2035a652da 100644--- a/docs/api/apiv3/components/schemas/membership_write_model.yml+++ b/docs/api/apiv3/components/schemas/membership_write_model.yml@@ -6,9 +6,6 @@ required:properties:_links:type: object- required:- - principal- - rolesproperties:principal:allOf:diff --git a/docs/api/apiv3/openapi-spec.yml b/docs/api/apiv3/openapi-spec.ymlindex 84d8920b2dc..e535f4fcdb8 100644--- a/docs/api/apiv3/openapi-spec.yml+++ b/docs/api/apiv3/openapi-spec.yml@@ -468,59 +468,61 @@ components:DateAlertNotification:$ref: './components/examples/date_alert_notification.yml'GridSimpleCollectionResponse:- "$ref": "./components/examples/grid-simple-collection-response.yml"+ $ref: './components/examples/grid-simple-collection-response.yml'GridSimplePatchModel:- "$ref": "./components/examples/grid-simple-patch-model.yml"+ $ref: './components/examples/grid-simple-patch-model.yml'GridSimpleResponse:- "$ref": "./components/examples/grid-simple-response.yml"+ $ref: './components/examples/grid-simple-response.yml'MembershipCreateRequestCustomMessage:- "$ref": "./components/examples/membership-create-request-custom-message.yml"+ $ref: './components/examples/membership-create-request-custom-message.yml'MembershipCreateRequestGlobalRole:- "$ref": "./components/examples/membership-create-request-global-role.yml"+ $ref: './components/examples/membership-create-request-global-role.yml'MembershipCreateRequestNoNotification:- "$ref": "./components/examples/membership-create-request-no-notification.yml"+ $ref: './components/examples/membership-create-request-no-notification.yml'MembershipFormResponse:- "$ref": "./components/examples/membership-form-response.yml"+ $ref: './components/examples/membership-form-response.yml'MembershipSchemaResponse:- "$ref": "./components/examples/membership-schema-response.yml"+ $ref: './components/examples/membership-schema-response.yml'MembershipSimpleCollectionResponse:- "$ref": "./components/examples/membership-simple-collection-response.yml"+ $ref: './components/examples/membership-simple-collection-response.yml'MembershipSimpleResponse:- "$ref": "./components/examples/membership-simple-response.yml"+ $ref: './components/examples/membership-simple-response.yml'+ MembershipUpdateAdditionalRoles:+ $ref: './components/examples/membership-update-additional-roles.yml'MentionedNotification:$ref: './components/examples/mentioned_notification.yml'NotificationCollection:$ref: './components/examples/notification_collection.yml'Project:- $ref: "./components/examples/project.yml"+ $ref: './components/examples/project.yml'ProjectBody:- $ref: "./components/examples/project_body.yml"+ $ref: './components/examples/project_body.yml'QueriesModel:- "$ref": "./components/examples/queries.yml"+ $ref: './components/examples/queries.yml'QueryModel:- "$ref": "./components/examples/query.yml"+ $ref: './components/examples/query.yml'QuerySchemaModel:- "$ref": "./components/examples/query_schema.yml"+ $ref: './components/examples/query_schema.yml'StoragesSimpleCollectionModel:- "$ref": "./components/examples/storages-simple-collection-response.yml"+ $ref: './components/examples/storages-simple-collection-response.yml'ValuesPropertyStartDateSchema:- "$ref": "./components/examples/values_property_start_date_schema.yml"+ $ref: './components/examples/values_property_start_date_schema.yml'ValuesPropertyDueDateSchema:- "$ref": "./components/examples/values_property_due_date_schema.yml"+ $ref: './components/examples/values_property_due_date_schema.yml'ValuesPropertyDateSchema:- "$ref": "./components/examples/values_property_date_schema.yml"+ $ref: './components/examples/values_property_date_schema.yml'ValuesPropertyStartDate:- "$ref": "./components/examples/values_property_start_date.yml"+ $ref: './components/examples/values_property_start_date.yml'ValuesPropertyDueDate:- "$ref": "./components/examples/values_property_due_date.yml"+ $ref: './components/examples/values_property_due_date.yml'ValuesPropertyDate:- "$ref": "./components/examples/values_property_date.yml"+ $ref: './components/examples/values_property_date.yml'Views:- "$ref": "./components/examples/views.yml"+ $ref: './components/examples/views.yml'ViewWorkPackagesTable:- "$ref": "./components/examples/view_work_packages_table.yml"+ $ref: './components/examples/view_work_packages_table.yml'ViewTeamPlanner:- "$ref": "./components/examples/view_team_planner.yml"+ $ref: './components/examples/view_team_planner.yml'responses:InvalidQuery:diff --git a/docs/api/apiv3/paths/membership.yml b/docs/api/apiv3/paths/membership.ymlindex e8aa11fc031..eff60e35dd0 100644--- a/docs/api/apiv3/paths/membership.yml+++ b/docs/api/apiv3/paths/membership.yml@@ -120,12 +120,8 @@ patch:schema:$ref: '../components/schemas/membership_write_model.yml'examples:- 'global role':- $ref: '../components/examples/membership-create-request-global-role.yml'- 'no notification':- $ref: '../components/examples/membership-create-request-no-notification.yml'- 'custom message':- $ref: '../components/examples/membership-create-request-custom-message.yml'+ 'add roles':+ $ref: '../components/examples/membership-update-additional-roles.yml'responses:'200':description: OK