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
provide request body examples for projects end point
ulfertsd8b7b9ddedbc
diff --git a/docs/api/apiv3/components/schemas/view_project_model.yml b/docs/api/apiv3/components/examples/project.ymlsimilarity index 93%rename from docs/api/apiv3/components/schemas/view_project_model.ymlrename to docs/api/apiv3/components/examples/project.ymlindex ac9e3f918ca..6f307b100bb 100644--- a/docs/api/apiv3/components/schemas/view_project_model.yml+++ b/docs/api/apiv3/components/examples/project.yml@@ -1,7 +1,6 @@-# Schema: View_projectModel+# Example: ProjectModel----type: object-example:+value:_type: Project_links:self:@@ -32,7 +31,7 @@ example:href: "/api/v3/project_statuses/on_track"title: On trackid: 1- identifier: project_identifier+ identifier: project_examplename: Project exampleactive: truepublic: falsediff --git a/docs/api/apiv3/components/examples/project_body.yml b/docs/api/apiv3/components/examples/project_body.ymlnew file mode 100644index 00000000000..2e038df3f09--- /dev/null+++ b/docs/api/apiv3/components/examples/project_body.yml@@ -0,0 +1,13 @@+# Example: Project create request body+---+value:+ name: 'Project example'+ statusExplanation:+ raw: Everything **fine**+ description:+ raw: Lorem **ipsum** dolor sit amet+ customField123: 123+ _links:+ customField456:+ href: "/api/v3/users/315"+ method: A userdiff --git a/docs/api/apiv3/openapi-spec.yml b/docs/api/apiv3/openapi-spec.ymlindex e42f954e07d..7e3bc79da07 100644--- a/docs/api/apiv3/openapi-spec.yml+++ b/docs/api/apiv3/openapi-spec.yml@@ -224,26 +224,26 @@ paths:"$ref": "./paths/priorities.yml""/api/v3/priorities/{id}":"$ref": "./paths/priority.yml"- "/api/v3/project_statuses/{id}":- "$ref": "./paths/project_status.yml""/api/v3/projects":"$ref": "./paths/projects.yml"- "/api/v3/projects/available_parent_projects":- "$ref": "./paths/projects_available_parent_projects.yml""/api/v3/projects/form":"$ref": "./paths/projects_form.yml""/api/v3/projects/schemas":"$ref": "./paths/projects_schemas.yml""/api/v3/projects/{id}":"$ref": "./paths/project.yml"- "/api/v3/projects/{id}/budgets":- "$ref": "./paths/project_budgets.yml"+ "/api/v3/projects/{id}/form":+ "$ref": "./paths/project_form.yml""/api/v3/projects/{id}/copy":"$ref": "./paths/project_copy.yml""/api/v3/projects/{id}/copy/form":"$ref": "./paths/project_copy_form.yml"- "/api/v3/projects/{id}/form":- "$ref": "./paths/project_form.yml"+ "/api/v3/project_statuses/{id}":+ "$ref": "./paths/project_status.yml"+ "/api/v3/projects/available_parent_projects":+ "$ref": "./paths/projects_available_parent_projects.yml"+ "/api/v3/projects/{id}/budgets":+ "$ref": "./paths/project_budgets.yml""/api/v3/projects/{id}/queries/default":"$ref": "./paths/project_queries_default.yml""/api/v3/projects/{id}/queries/filter_instance_schemas":@@ -393,6 +393,11 @@ paths:"/api/v3/work_packages/{id}/watchers/{user_id}":"$ref": "./paths/work_package_watcher.yml"components:+ examples:+ Project:+ $ref: "./components/examples/project.yml"+ ProjectBody:+ $ref: "./components/examples/project_body.yml"schemas:ActivityModel:"$ref": "./components/schemas/activity_model.yml"@@ -692,8 +697,6 @@ components:"$ref": "./components/schemas/view_membership_model.yml"View_membership_schemaModel:"$ref": "./components/schemas/view_membership_schema_model.yml"- View_projectModel:- "$ref": "./components/schemas/view_project_model.yml"View_project_statusModel:"$ref": "./components/schemas/view_project_status_model.yml"View_time_entries_activityModel:diff --git a/docs/api/apiv3/paths/project.yml b/docs/api/apiv3/paths/project.ymlindex 8a9168059a9..e85112b6942 100644--- a/docs/api/apiv3/paths/project.yml+++ b/docs/api/apiv3/paths/project.yml@@ -86,55 +86,10 @@ get:content:application/hal+json:examples:- response:- value:- _links:- categories:- href: "/api/v3/projects/1/categories"- createWorkPackage:- href: "/api/v3/projects/1/work_packages/form"- method: post- createWorkPackageImmediate:- href: "/api/v3/projects/1/work_packages"- method: post- customField456:- href: "/api/v3/users/315"- method: A user- memberships:- href: /api/v3/memberships?filters=[{"project":{"operator":"=","values":["1"]}}]- projects:- href: "/api/v3/projects/123"- self:- href: "/api/v3/projects/1"- title: Lorem- status:- href: "/api/v3/project_statuses/on_track"- title: On track- types:- href: "/api/v3/projects/1/types"- versions:- href: "/api/v3/projects/1/versions"- workPackages:- href: "/api/v3/projects/1/work_packages"- _type: Project- active: true- createdAt: '2014-05-21T08:51:20Z'- customField123: 123- description:- format: markdown- html: "<p>Lorem <strong>ipsum</strong> dolor sit amet</p>"- raw: Lorem **ipsum** dolor sit amet- id: 1- identifier: project_identifier- name: Project example- public: false- statusExplanation:- format: markdown- html: "<p>Everything <strong>fine</strong></p>"- raw: Everything **fine**- updatedAt: '2014-05-21T08:51:20Z'+ "with custom fields":+ "$ref": "../components/examples/project.yml"schema:- "$ref": "../components/schemas/view_project_model.yml"+ "$ref": "../components/schemas/project_model.yml"description: OKheaders: {}'404':@@ -169,12 +124,23 @@ patch:required: trueschema:type: integer+ requestBody:+ content:+ application/json:+ schema:+ type: object+ examples:+ "with custom fields":+ "$ref": "../components/examples/project_body.yml"responses:'200':content:application/hal+json:schema:- "$ref": "../components/schemas/view_project_model.yml"+ "$ref": "../components/schemas/project_model.yml"+ examples:+ "with custom fields":+ "$ref": "../components/examples/project.yml"description: OKheaders: {}'400':diff --git a/docs/api/apiv3/paths/project_form.yml b/docs/api/apiv3/paths/project_form.ymlindex 5f23b06925e..54310110e7a 100644--- a/docs/api/apiv3/paths/project_form.yml+++ b/docs/api/apiv3/paths/project_form.yml@@ -9,6 +9,17 @@ post:required: trueschema:type: integer+ requestBody:+ content:+ application/json:+ schema:+ type: object+ examples:+ "with custom fields":+ "$ref": "../components/examples/project_body.yml"+ "empty":+ description: Empty request to get the form initially in order to start the guided update of a project+ value: {}responses:'200':description: OKdiff --git a/docs/api/apiv3/paths/projects.yml b/docs/api/apiv3/paths/projects.ymlindex 25c2e96cf18..3455bda1cb9 100644--- a/docs/api/apiv3/paths/projects.yml+++ b/docs/api/apiv3/paths/projects.yml@@ -157,12 +157,23 @@ get:operationId: List_projectssummary: List projectspost:+ requestBody:+ content:+ application/json:+ schema:+ type: object+ examples:+ "with custom fields":+ "$ref": "../components/examples/project_body.yml"responses:'201':content:application/hal+json:schema:- "$ref": "../components/schemas/view_project_model.yml"+ "$ref": "../components/schemas/project_model.yml"+ examples:+ "with custom fields":+ "$ref": "../components/examples/project.yml"description: Createdheaders: {}'400':diff --git a/docs/api/apiv3/paths/projects_form.yml b/docs/api/apiv3/paths/projects_form.ymlindex 6cbe42043e3..ebecb3b3acf 100644--- a/docs/api/apiv3/paths/projects_form.yml+++ b/docs/api/apiv3/paths/projects_form.yml@@ -1,6 +1,17 @@# /api/v3/projects/form---post:+ requestBody:+ content:+ application/json:+ schema:+ type: object+ examples:+ "with custom fields":+ "$ref": "../components/examples/project_body.yml"+ "empty":+ description: Empty request to get the form initially in order to start the guided creation of a project+ value: {}responses:'200':content:diff --git a/docs/api/apiv3/paths/version_projects.yml b/docs/api/apiv3/paths/version_projects.ymlindex 3005190dcc4..892e5808abb 100644--- a/docs/api/apiv3/paths/version_projects.yml+++ b/docs/api/apiv3/paths/version_projects.yml@@ -72,4 +72,4 @@ get:The projects returned depend on the sharing settings of the given version,but are also limited to the projects that the current user is allowed to see.operationId: List_projects_with_version- summary: List projects with version+ summary: List projects having version